Last Updated: February 25, 2016
·
1.262K
· Osvaldo Zonetti

Sending files over SSH

Sending a file:

scp /path/to/my/file remoteuser@remotehost:/paste/here/

Sending a folder:

scp -r /path/to/my/folder remoteuser@remotehost:/paste/here/

Using EC2? No problem:

scp -i /path/to/my/key.pem -r /path/to/my/folder remoteuser@remotehost:/paste/here/