zloy8a
Last Updated: February 25, 2016
·
912
· 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/