Server to Server Copying Files With SCP

To copy files between remote servers where transfers occur on the local host you use the -3 command line switch. This is useful if server1 and server2 don’t permissions to communicate with each other but the local host does.

scp -3 user@server1:/path/to/file user@server2:/path/to/file

Leave a Reply

Your email address will not be published. Required fields are marked *