← back to code snippets

SCP Command - local to remote

Posted on February 4th, 2014

To copy a folder from a local machine to a remote server, you can use this command:

scp -r C:/site user@server_ip:path

 If you want to specify a port use this:

scp -P 80 ... # Use port 80 to bypass the firewall, instead of the scp default