Search This Blog

Monday, November 15, 2010

How do I use the scp command to securely transfer files between two computers? or transfer files between 2 unix servers

 In Unix, you can use the scp command to copy files and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password or passphrase for authentication. Unlike rcp or FTP, scp encrypts both the file and any passwords exchanged so that anyone snooping on the network can't view them.

NOTE: Be careful when copying between hosts files that have the same names; you may accidently overwrite them.

The syntax for the scp command is:

  scp [options] [[user@]host1:]filename1 ...  [[user@]host2:]filename2

  
For more information about scp, consult its man page. At the Unix prompt, enter:

  man scp

No comments:

Post a Comment