SCP

A more secure replacement for ftp is SCP (Secure Copy). SCP operates through an SSH (Secure SHell), and as a result, provides for a more secure data transfer method than ftp. SSH is discussed in more detail in section 1.10.2 on page [*].

Transfer the file file.txt from home to to a CSE account (user fpoacha).

    scp local_file username@hostname:remote_file
    
    % scp ~/file.txt fpoacha@williams.cse.unsw.edu.au:file.txt

Retrieve the file file.txt from a CSE account and save it as localfile.txt at the destination (your home computer for example):

     scp username@hostname:remote_file local_file
     
     % scp fpoacha@williams.cse.unsw.edu.au:file.txt localfile.txt

In both examples, the server williams.cse.unsw.edu.au is used to perform the transfer, however any CSE server that supports SSH can be used for this purpose.

As usual, there is a man page for the scp command which describes SCP and its features in more detail.

Use

    % man scp

to read the manual page for this program.



Loc Van Huynh 2007-03-15
Please complete our new website survey