Skip to content

Instantly share code, notes, and snippets.

@guillermoroblesjr
Last active August 29, 2015 14:15
Show Gist options
  • Save guillermoroblesjr/c5a7519b1c74adb41286 to your computer and use it in GitHub Desktop.
Save guillermoroblesjr/c5a7519b1c74adb41286 to your computer and use it in GitHub Desktop.
Copy files over SSH with scp
# ===[ Secure Copy (via ssh) ]===
#Copy the file "foobar.txt" from a remote host to the local host
scp [email protected]:foobar.txt /some/local/directory
#Copy the file "foobar.txt" from the local host to a remote host
scp foobar.txt [email protected]:/some/remote/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment