Skip to content

Instantly share code, notes, and snippets.

@arodbits
Last active September 25, 2017 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arodbits/96d4754d07d8620ed69023528397af79 to your computer and use it in GitHub Desktop.
Save arodbits/96d4754d07d8620ed69023528397af79 to your computer and use it in GitHub Desktop.
move files between hosts over ssh using the secure copy command (scp)
scp -r /path/to/source hostname:port/path/to/destination
#if using an entity file for ssh
scp -r -i /path/to/key.pem /path/to/source hostname:port/path/to/destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment