Wednesday, November 12, 2008

SCP - Secure Copy Protocol

In Unix and Linux, you can use the scp command to copy files and directories securely between remote hosts. The scp command uses SSH to transfer data, which requires password (standard user account). It encrypts both the file and passwords exchanged.

Syntax:

scp local_filename remote_user@remote_host:/destination_path/destination_filename


SCP copies between two remote hosts are permitted as well.

scp user@remote_host1:/source_path/remote_filename user@remote_host2:/destination_path/destination_filename


For additionla options (i.e recursive copy, change default port , etc..) try

man scp


There is also a tool for windows:

http://winscp.net/download/