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.
scp /tmp/myfile [email protected]:/tmp/
Will send /tmp/myfile over to /tmp/ on otherhost
scp [email protected]:/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.