Using Secure Copy (scp2
)
scp2
is a program for copying files securely over the network. It
uses ssh2
for data transfer and authentication and provides the
same security as ssh2
.
scp2
uses SFTP2 over Secure Shell v2 for data exchange between the
client and server. This is not to be confused with FTP
.
The basic syntax for scp2
is:
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
Secure Shell 1.x was installed before SSH Tectia, you will need to type
scp1
to run the Secure Shell 1.x secure copy command.
The scp2
command-line options are documented in detail on the
scp2
man page.
scp2
can be used to copy files in either direction; 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 in relation to the user's home directory.