Skip to content

Instantly share code, notes, and snippets.

@sharathchandramg
Last active August 28, 2018 04:16
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 sharathchandramg/1594927758d0c33fc4b166b8350f7450 to your computer and use it in GitHub Desktop.
Save sharathchandramg/1594927758d0c33fc4b166b8350f7450 to your computer and use it in GitHub Desktop.

Common SCP commands

Copy from host to remote

Copy directory

scp -i <identity_file> -r <local_path> user_name@<remote_address>:/<remote_directory>

scp -i ~/.ssh/myrandomkey.com /Users/sharath/Downloads/xyz.zip ideas@ideas.comingalong.com:/tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment