2 .\" To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the
3 .\" installed location.
4 .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
5 .TH SCP 1 "Jun 22, 2007"
7 scp \- secure copy (remote file copy program)
11 \fBscp\fR [\fB-pqrvBC46\fR] [\fB-F\fR \fIssh_config\fR] [\fB-S\fR \fIprogram\fR] [\fB-P\fR \fIport\fR]
12 [\fB-c\fR \fIcipher\fR] [\fB-i\fR \fIidentity_file\fR] [\fB-o\fR \fIssh_option\fR]
13 [ [\fIuser\fR@]\fIhost1\fR:]\fIfile1\fR []... [ [\fIuser\fR@]\fIhost2\fR:]\fIfile2\fR
19 The \fBscp\fR utility copies files between hosts on a network. It uses
20 \fBssh\fR(1) for data transfer, and uses the same authentication and provides
21 the same security as \fBssh\fR(1). Unlike \fBrcp\fR(1), \fBscp\fR will ask for
22 passwords or passphrases if they are needed for authentication.
25 Any file name may contain a host and user specification to indicate that the
26 file is to be copied to/from that host. Copies between two remote hosts are
31 The following options are supported:
38 Forces \fBscp\fR to use IPv4 addresses only.
47 Forces \fBscp\fR to use IPv6 addresses only.
56 Selects batch mode. (Prevents asking for passwords or passphrases.)
62 \fB\fB-c\fR \fIcipher\fR\fR
65 Selects the cipher to use for encrypting the data transfer. This option is
66 directly passed to \fBssh\fR(1).
75 Compression enable. Passes the \fB-C\fR flag to \fBssh\fR(1) to enable
82 \fB\fB-F\fR \fIssh_config\fR\fR
85 Specifies an alternative per-user configuration file for \fBssh\fR(1.).
91 \fB\fB-i\fR \fIidentity_file\fR\fR
94 Selects the file from which the identity (private key) for \fBRSA\fR
95 authentication is read. This option is directly passed to \fBssh\fR(1).
101 \fB\fB-o\fR \fIssh_option\fR\fR
104 The given option is directly passed to \fBssh\fR(1).
113 Preserves modification times, access times, and modes from the original file.
119 \fB\fB-P\fR \fIport\fR\fR
122 Specifies the port to connect to on the remote host. Notice that this option is
123 written with a capital `P', because \fB-p\fR is already reserved for preserving
124 the times and modes of the file in \fBrcp\fR(1).
133 Disables the progress meter.
142 Recursively copies entire directories.
148 \fB\fB-S\fR \fIprogram\fR\fR
151 Specifies the name of the program to use for the encrypted connection. The
152 program must understand \fBssh\fR(1) options.
161 Verbose mode. Causes \fBscp\fR and \fBssh\fR(1) to print debugging messages
162 about their progress. This is helpful in debugging connection, authentication,
163 and configuration problems.
169 The following operands are supported:
173 \fB\fIhost1, host2,\fR...\fR
176 The name(s) of the host from or to which the file is to be copied.
182 \fB\fIfile1, file2,\fR...\fR
185 The file(s) to be copied.
191 The following exit values are returned:
198 Successful completion.
213 See \fBattributes\fR(5) for descriptions of the following attributes:
221 ATTRIBUTE TYPE ATTRIBUTE VALUE
223 Interface Stability Evolving
229 \fBrcp\fR(1), \fBssh\fR(1), \fBssh-add\fR(1), \fBssh-agent\fR(1),
230 \fBssh-keygen\fR(1), \fBsshd\fR(1M), \fBssh_config\fR(4), \fBattributes\fR(5)
234 Generally, use of \fBscp\fR with password or keyboard-interactive
235 authentication method and two remote hosts does not work. It does work with
236 either the \fBpubkey\fR, \fBhostbased\fR or \fBgssapi-keyex\fR authentication
237 method. For the \fBpubkey\fR authentication method, either private keys not
238 protected by a passphrase, or an explicit \fBssh\fR agent forwarding have to
239 be used. The \fBgssapi-keyex\fR authentication method works with the
240 \fBkerberos_v5\fR GSS-API mechanism, but only if the
241 \fBGSSAPIDelegateCredentials\fR option is enabled.