Last active
October 10, 2018 12:34
-
-
Save Guibzs/66086c8ad771e2ffc3658f5607b26bfe to your computer and use it in GitHub Desktop.
SSH commands
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
ssh username@hostname |
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
# Copy from another system to this system: | |
scp username@hostname:/path/to/remote/file /path/to/local/file | |
# Copy from this system to another system: | |
scp /path/to/local/file username@hostname:/path/to/remote/file | |
# Copy from some system to some other system: | |
scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file |
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
# Copy from another system to this system: | |
pscp username@hostname:/path/to/remote/file /path/to/local/file | |
# Copy from this system to another system: | |
pscp /path/to/local/file username@hostname:/path/to/remote/file | |
# Copy from another system to this system (using a keyfile): | |
pscp -i /path/to/keyfile.ppk username@hostname:/path/to/remote/file /path/to/local/file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment