Skip to content

Instantly share code, notes, and snippets.

@heaversm
Created February 16, 2024 16:06
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 heaversm/f04f2c98c900bf177661d4c146cabb6a to your computer and use it in GitHub Desktop.
Save heaversm/f04f2c98c900bf177661d4c146cabb6a to your computer and use it in GitHub Desktop.
SCP Copy between server and local computer

COPY FILES BETWEEN YOUR SERVER AND LOCAL COMPUTER

In terminal, on local machine, run:

FROM REMOTE TO LOCAL

scp -r ssh_user@ssh_host_ip:/var/www/foldername ~/Desktop/foldername

FROM LOCAL TO REMOTE

scp -r /path/to/local/savant username@remote_server:/path/to/destination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment