Skip to content

Instantly share code, notes, and snippets.

@bonomali
Forked from jasperf/scp
Created May 11, 2019 19:52
Show Gist options
  • Save bonomali/394e71c6f306c56f95a079a3ce255b41 to your computer and use it in GitHub Desktop.
Save bonomali/394e71c6f306c56f95a079a3ce255b41 to your computer and use it in GitHub Desktop.
Use secure copy or scp to upload and download files to the server #scp #ssh
//Uploading Using SCP
## origin > destination
scp /home/jasper/path/file user@sdomain.com:/home/username/domain.com/public_html/images/
Uploading to Ubuntu Server
scp /home/jasper/path/file user@sdomain.com:/var/www/html/
##downloading
scp root@1.2.3.4:/root/pcfilename.rar ./
##directory download
scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment