Created
February 19, 2022 14:16
-
-
Save NaserKhoshfetrat/6a0ed744b714967bbdf16e1aa7350fa7 to your computer and use it in GitHub Desktop.
download file from linux to linux over ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp [email protected]:~/todo.txt ~/downloads |
If you want to access EC2 (or other service that requires authenticating with a private key), use the -i option:
scp -i key_file.pem [email protected]:/remote/dir/foobar.txt /local/dir
copy something from another system to this system:
scp username@hostname:/path/to/remote/file /path/to/local/file
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scp [email protected]:foobar.txt /local/dir