Skip to content

Instantly share code, notes, and snippets.

@boywijnmaalen
Last active April 9, 2018 05:14
Show Gist options
  • Save boywijnmaalen/08aae47c68a884e8d373 to your computer and use it in GitHub Desktop.
Save boywijnmaalen/08aae47c68a884e8d373 to your computer and use it in GitHub Desktop.
scp (Copy) file from server A to server B
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment