Oct 302009
 

Copy files securely from host to host with SCP

SCP is a really handy utility for copying files to or from your machine to another host over SSH.

Usage:

scp /tmp/myfile user@otherhost:/tmp/
Will send /tmp/myfile over to /tmp/ on otherhost

scp user@otherhost:/etc/passwd ~/
Will copy /etc/passwd from otherhost to my home directory (~/)

Like everything in Linux, it’s that easy 🙂

As SCP uses SSH as it’s transport, key authentication will allow a passwordless login.

 Posted by at 9:42 am