Skip to content

Instantly share code, notes, and snippets.

@jesusalber1
Created March 16, 2016 22:29
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 jesusalber1/21d0eed1f31243684cc5 to your computer and use it in GitHub Desktop.
Save jesusalber1/21d0eed1f31243684cc5 to your computer and use it in GitHub Desktop.
SCP simple usage
# SCP (Secure Copy, over SSH)
# Local to server
scp /path/to/retrieve user@domain.com:/path/to/save
# Server to local
scp user@domain.com:/path/to/retrieve /path/to/save
# Server to server
scp user@domain.com:/path/to/retrieve user2@domain2.com:/path/to/save
# Recursive, adding -r and directory instead file to retrieve
scp -r /path/to/retrieve user@domain.com:/path/to/save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment