Loading...
Select Version
&pagelevel(4)&pagelevel
Syntax
scp [-12346BCpqrv] [-c <cipher>] [-F <ssh_config>] [-i <identity_file>] [-l <limit>] [-o <ssh_option>] [-P <port>] [-S <program>] [-X binary] [[<user>@]<host1>:]<file1> [...] [[<user>@]<host2>:]<file2>
A detailed description of the operands is provided in the OpenSSH man pages.
Description
scp enables you to copy files between computers in a network. In contrast to the r utility rcp, scp inquires passphrases and passwords if these are required for authentication.
Each file name can contain details on the computer and user to show that this file is to be copied from / to the computer concerned.
The -X binary
option can be used for connections to ASCII servers in order to transfer files in binary format (bit-identical). For connections to EBCDIC servers, this option must be omitted in order to get a bit-identical transfer.
Return value
If successful: 0
If not successful: < 0