Skip to content

Instantly share code, notes, and snippets.

@allanesquina
Created February 5, 2015 15:18
Show Gist options
  • Save allanesquina/6326f8a9feecc5ac8395 to your computer and use it in GitHub Desktop.
Save allanesquina/6326f8a9feecc5ac8395 to your computer and use it in GitHub Desktop.
Example syntax for Secure Copy (scp)
# Single file (-P = ssh port)
sudo scp -P 21 root@server:/var/log/nginx/access.log /home/Downloads/
# Recursive
sudo scp -r -P 21 root@server:/var/log/nginx/ /home/Downloads/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment