There are three Linux servers, and I would like to transfer files from the source server to the destination server with one server in between.
ネットワーク Due to network configuration, the server must be placed in the middle.
[Question]
·Only processing the command execution server
Can I transfer files with server 1→2→3?
·If the above is not possible, how can I transfer files from the source server to the destination server?
This is an abstract question because I don't know much about file transfer and I am in a hurry, but I would appreciate it if you could lend me your wisdom.
linux network sh
If you want to use the intermediate server as a stepping stone to transfer ssh, you can use multistage scp.
For example, using ProxyCommand, you can write:
scp-r-o "ProxyCommand ssh-i~/.ssh/key user@stool-W%h:%p"/path/to/file user@To:/path/to/file
You can also write ProxyJump using .
Note: How to scp with a second remote host
© 2024 OneMinuteCode. All rights reserved.