Using SSH to copy files between systems

Copy something from this system to some other system:

scp /path/to/local/file username@hostname:/path/to/remote/file

Copy something from some system to some other system:

scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file

Copy something from another system to this system:

scp username@hostname:/path/to/remote/file /path/to/local/file

Source: Stackoverflow: how-to-download-a-file-from-server-using-ssh

Leave a comment

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