SCP allows file to be copied to, from, or between different hosts using ssh for data transfer.
Copy files from remote computer to a local computer:
scp username@www.xzy.com:~/somefile.txt /home/local/directory
Copy files from local computer to remote computer:
scp /home/local/directory/somefile.txt username@www.xzy.com:~/
Copy a directory ‘dir’ from local computer to remote computer
scp -r /home/local/dir username@www.xzy.com:~/
SCP uses Triple-DES by default. To change cipher, use the following command:
scp -c blowfish username@www.xzy.com:~/somefile.txt /home/local/directory