Skip to content

Instantly share code, notes, and snippets.

@alfeyo
Created June 9, 2020 10:14
Show Gist options
  • Save alfeyo/48b5ad40c699e6a9e47c68eac9f02e58 to your computer and use it in GitHub Desktop.
Save alfeyo/48b5ad40c699e6a9e47c68eac9f02e58 to your computer and use it in GitHub Desktop.
Server ssh 101
Syntax:
scp <source> <destination>
To copy a file from B to A while logged into B:
scp /path/to/file username@a:/path/to/destination
To copy a file from B to A while logged into A:
scp username@b:/path/to/file /path/to/destination
https://unix.stackexchange.com/questions/106480/how-to-copy-files-from-one-machine-to-another-using-ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment