]>
Commit | Line | Data |
---|---|---|
bf740959 | 1 | .\" -*- nroff -*- |
2 | .\" | |
3 | .\" scp.1 | |
4 | .\" | |
5 | .\" Author: Tatu Ylonen <ylo@cs.hut.fi> | |
6 | .\" | |
7 | .\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | |
8 | .\" All rights reserved | |
9 | .\" | |
10 | .\" Created: Sun May 7 00:14:37 1995 ylo | |
11 | .\" | |
51402e76 | 12 | .\" $OpenBSD: scp.1,v 1.44 2008/01/31 20:06:50 jmc Exp $ |
49c5f262 | 13 | .\" $OpenBSD: scp.1,v 1.45 2008/06/14 19:42:10 dtucker Exp $ |
bf740959 | 14 | .\" |
e473dcd1 | 15 | .Dd $Mdocdate$ |
bf740959 | 16 | .Dt SCP 1 |
17 | .Os | |
18 | .Sh NAME | |
19 | .Nm scp | |
20 | .Nd secure copy (remote file copy program) | |
21 | .Sh SYNOPSIS | |
22 | .Nm scp | |
a4e5acef | 23 | .Bk -words |
433e60ac | 24 | .Op Fl 1246BCpqrv |
bf740959 | 25 | .Op Fl c Ar cipher |
433e60ac | 26 | .Op Fl F Ar ssh_config |
bf740959 | 27 | .Op Fl i Ar identity_file |
bd9f564f | 28 | .Op Fl l Ar limit |
38539909 | 29 | .Op Fl o Ar ssh_option |
433e60ac | 30 | .Op Fl P Ar port |
31 | .Op Fl S Ar program | |
bf740959 | 32 | .Sm off |
33 | .Oo | |
433e60ac | 34 | .Op Ar user No @ |
bf740959 | 35 | .Ar host1 No : |
36 | .Oc Ns Ar file1 | |
37 | .Sm on | |
d0ac0d65 | 38 | .Ar ... |
bf740959 | 39 | .Sm off |
40 | .Oo | |
433e60ac | 41 | .Op Ar user No @ |
bf740959 | 42 | .Ar host2 No : |
43 | .Oc Ar file2 | |
44 | .Sm on | |
a4e5acef | 45 | .Ek |
f54651ce | 46 | .Sh DESCRIPTION |
bf740959 | 47 | .Nm |
4fe2af09 | 48 | copies files between hosts on a network. |
49 | It uses | |
bf740959 | 50 | .Xr ssh 1 |
51 | for data transfer, and uses the same authentication and provides the | |
52 | same security as | |
53 | .Xr ssh 1 . | |
54 | Unlike | |
55 | .Xr rcp 1 , | |
56 | .Nm | |
57 | will ask for passwords or passphrases if they are needed for | |
58 | authentication. | |
59 | .Pp | |
51402e76 | 60 | File names may contain a user and host specification to indicate |
4fe2af09 | 61 | that the file is to be copied to/from that host. |
51402e76 | 62 | Local file names can be made explicit using absolute or relative pathnames |
63 | to avoid | |
64 | .Nm | |
65 | treating file names containing | |
66 | .Sq :\& | |
67 | as host specifiers. | |
68 | Copies between two remote hosts are also permitted. | |
bf740959 | 69 | .Pp |
70 | The options are as follows: | |
71 | .Bl -tag -width Ds | |
433e60ac | 72 | .It Fl 1 |
73 | Forces | |
bf740959 | 74 | .Nm |
433e60ac | 75 | to use protocol 1. |
76 | .It Fl 2 | |
77 | Forces | |
78 | .Nm | |
79 | to use protocol 2. | |
80 | .It Fl 4 | |
81 | Forces | |
82 | .Nm | |
83 | to use IPv4 addresses only. | |
84 | .It Fl 6 | |
85 | Forces | |
86 | .Nm | |
87 | to use IPv6 addresses only. | |
bf740959 | 88 | .It Fl B |
89 | Selects batch mode (prevents asking for passwords or passphrases). | |
bf740959 | 90 | .It Fl C |
4fe2af09 | 91 | Compression enable. |
92 | Passes the | |
bf740959 | 93 | .Fl C |
94 | flag to | |
95 | .Xr ssh 1 | |
96 | to enable compression. | |
433e60ac | 97 | .It Fl c Ar cipher |
98 | Selects the cipher to use for encrypting the data transfer. | |
99 | This option is directly passed to | |
100 | .Xr ssh 1 . | |
f1278af7 | 101 | .It Fl F Ar ssh_config |
102 | Specifies an alternative | |
103 | per-user configuration file for | |
104 | .Nm ssh . | |
105 | This option is directly passed to | |
106 | .Xr ssh 1 . | |
433e60ac | 107 | .It Fl i Ar identity_file |
108 | Selects the file from which the identity (private key) for RSA | |
109 | authentication is read. | |
110 | This option is directly passed to | |
111 | .Xr ssh 1 . | |
112 | .It Fl l Ar limit | |
113 | Limits the used bandwidth, specified in Kbit/s. | |
114 | .It Fl o Ar ssh_option | |
115 | Can be used to pass options to | |
116 | .Nm ssh | |
117 | in the format used in | |
118 | .Xr ssh_config 5 . | |
119 | This is useful for specifying options | |
120 | for which there is no separate | |
121 | .Nm scp | |
122 | command-line flag. | |
123 | For full details of the options listed below, and their possible values, see | |
124 | .Xr ssh_config 5 . | |
125 | .Pp | |
126 | .Bl -tag -width Ds -offset indent -compact | |
127 | .It AddressFamily | |
128 | .It BatchMode | |
129 | .It BindAddress | |
130 | .It ChallengeResponseAuthentication | |
131 | .It CheckHostIP | |
132 | .It Cipher | |
133 | .It Ciphers | |
433e60ac | 134 | .It Compression |
135 | .It CompressionLevel | |
136 | .It ConnectionAttempts | |
78f8c073 | 137 | .It ConnectTimeout |
5e96b616 | 138 | .It ControlMaster |
139 | .It ControlPath | |
433e60ac | 140 | .It GlobalKnownHostsFile |
141 | .It GSSAPIAuthentication | |
142 | .It GSSAPIDelegateCredentials | |
ba9d1100 | 143 | .It HashKnownHosts |
433e60ac | 144 | .It Host |
145 | .It HostbasedAuthentication | |
146 | .It HostKeyAlgorithms | |
147 | .It HostKeyAlias | |
148 | .It HostName | |
149 | .It IdentityFile | |
3a065ed0 | 150 | .It IdentitiesOnly |
396070f8 | 151 | .It KbdInteractiveDevices |
433e60ac | 152 | .It LogLevel |
153 | .It MACs | |
154 | .It NoHostAuthenticationForLocalhost | |
155 | .It NumberOfPasswordPrompts | |
156 | .It PasswordAuthentication | |
157 | .It Port | |
158 | .It PreferredAuthentications | |
159 | .It Protocol | |
160 | .It ProxyCommand | |
161 | .It PubkeyAuthentication | |
db175906 | 162 | .It RekeyLimit |
433e60ac | 163 | .It RhostsRSAAuthentication |
164 | .It RSAAuthentication | |
16cc4c93 | 165 | .It SendEnv |
5d8d32a3 | 166 | .It ServerAliveInterval |
167 | .It ServerAliveCountMax | |
433e60ac | 168 | .It SmartcardDevice |
169 | .It StrictHostKeyChecking | |
fd573618 | 170 | .It TCPKeepAlive |
433e60ac | 171 | .It UsePrivilegedPort |
172 | .It User | |
173 | .It UserKnownHostsFile | |
174 | .It VerifyHostKeyDNS | |
433e60ac | 175 | .El |
bf740959 | 176 | .It Fl P Ar port |
4fe2af09 | 177 | Specifies the port to connect to on the remote host. |
178 | Note that this option is written with a capital | |
bf740959 | 179 | .Sq P , |
180 | because | |
181 | .Fl p | |
182 | is already reserved for preserving the times and modes of the file in | |
183 | .Xr rcp 1 . | |
433e60ac | 184 | .It Fl p |
185 | Preserves modification times, access times, and modes from the | |
186 | original file. | |
187 | .It Fl q | |
127b07bd | 188 | Quiet mode: disables the progress meter as well as warning and diagnostic |
189 | messages from | |
190 | .Xr ssh 1 . | |
433e60ac | 191 | .It Fl r |
192 | Recursively copy entire directories. | |
49c5f262 | 193 | Note that |
194 | .Nm | |
195 | follows symbolic links encountered in the tree traversal. | |
b5e300c2 | 196 | .It Fl S Ar program |
197 | Name of | |
198 | .Ar program | |
94ec8c6b | 199 | to use for the encrypted connection. |
200 | The program must understand | |
2e73a022 | 201 | .Xr ssh 1 |
202 | options. | |
433e60ac | 203 | .It Fl v |
204 | Verbose mode. | |
205 | Causes | |
48e671d5 | 206 | .Nm |
433e60ac | 207 | and |
208 | .Xr ssh 1 | |
209 | to print debugging messages about their progress. | |
210 | This is helpful in | |
211 | debugging connection, authentication, and configuration problems. | |
089fbbd2 | 212 | .El |
578d2b99 | 213 | .Pp |
214 | .Ex -std scp | |
bf740959 | 215 | .Sh SEE ALSO |
216 | .Xr rcp 1 , | |
61e96248 | 217 | .Xr sftp 1 , |
bf740959 | 218 | .Xr ssh 1 , |
219 | .Xr ssh-add 1 , | |
220 | .Xr ssh-agent 1 , | |
221 | .Xr ssh-keygen 1 , | |
e4e83d70 | 222 | .Xr ssh_config 5 , |
bf740959 | 223 | .Xr sshd 8 |
be193d89 | 224 | .Sh HISTORY |
225 | .Nm | |
226 | is based on the | |
227 | .Xr rcp 1 | |
228 | program in BSD source code from the Regents of the University of | |
229 | California. | |
230 | .Sh AUTHORS | |
231 | .An Timo Rinne Aq tri@iki.fi | |
be193d89 | 232 | .An Tatu Ylonen Aq ylo@cs.hut.fi |