Created
February 5, 2015 15:18
-
-
Save allanesquina/6326f8a9feecc5ac8395 to your computer and use it in GitHub Desktop.
Example syntax for Secure Copy (scp)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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