Using Secure Copy (scp2)
Scp2 is a program for copying files securely over the
network. It uses ssh2 for data transfer, and uses the same
authentication and provides the same security as ssh2.
Scp2 uses a sftp2 over ssh2
for data exchange between the client and server. This is not to
be confused with FTP.
The basic syntax for scp2 is like this:
scp user@source:/directory/file user@destination:/directory/file
Note: As shown in the example above, in the normal case,
you do not have to type scp2. The installation process
creates a symbolic link, scp, that points to
the actual scp2 executable. If ssh1 was installed before
ssh2 was, you will need to type scp1 to run the
ssh1 client.
Scp2 can be used to copy files in either direction; that
is, from the local system to the remote system or vice versa.
Local paths can be specified without the user@system:
prefix. Relative paths can also be used; they are interpreted
relative to the user's home directory.
The scp2 command-line options are documented in detail on
the scp2(1) manual page.