xref: /freebsd/crypto/openssh/scp.1 (revision d4af9e693f15f5155095f38c7650b24fe74ae351)
1511b41d2SMark Murray.\"  -*- nroff -*-
2511b41d2SMark Murray.\"
3511b41d2SMark Murray.\" scp.1
4511b41d2SMark Murray.\"
5511b41d2SMark Murray.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
6511b41d2SMark Murray.\"
7511b41d2SMark Murray.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8511b41d2SMark Murray.\"                    All rights reserved
9511b41d2SMark Murray.\"
10511b41d2SMark Murray.\" Created: Sun May  7 00:14:37 1995 ylo
11511b41d2SMark Murray.\"
12d4af9e69SDag-Erling Smørgrav.\" $OpenBSD: scp.1,v 1.46 2008/07/12 05:33:41 djm Exp $
13511b41d2SMark Murray.\"
14d4af9e69SDag-Erling Smørgrav.Dd $Mdocdate: July 12 2008 $
15511b41d2SMark Murray.Dt SCP 1
16511b41d2SMark Murray.Os
17511b41d2SMark Murray.Sh NAME
18511b41d2SMark Murray.Nm scp
19511b41d2SMark Murray.Nd secure copy (remote file copy program)
20511b41d2SMark Murray.Sh SYNOPSIS
21511b41d2SMark Murray.Nm scp
22d0c8c0bcSDag-Erling Smørgrav.Bk -words
23efcad6b7SDag-Erling Smørgrav.Op Fl 1246BCpqrv
24511b41d2SMark Murray.Op Fl c Ar cipher
25efcad6b7SDag-Erling Smørgrav.Op Fl F Ar ssh_config
26511b41d2SMark Murray.Op Fl i Ar identity_file
27d0c8c0bcSDag-Erling Smørgrav.Op Fl l Ar limit
28ae1f160dSDag-Erling Smørgrav.Op Fl o Ar ssh_option
29efcad6b7SDag-Erling Smørgrav.Op Fl P Ar port
30efcad6b7SDag-Erling Smørgrav.Op Fl S Ar program
31511b41d2SMark Murray.Sm off
32511b41d2SMark Murray.Oo
33efcad6b7SDag-Erling Smørgrav.Op Ar user No @
34511b41d2SMark Murray.Ar host1 No :
35511b41d2SMark Murray.Oc Ns Ar file1
36511b41d2SMark Murray.Sm on
37d4af9e69SDag-Erling Smørgrav.Ar ...
38511b41d2SMark Murray.Sm off
39511b41d2SMark Murray.Oo
40efcad6b7SDag-Erling Smørgrav.Op Ar user No @
41511b41d2SMark Murray.Ar host2 No :
42511b41d2SMark Murray.Oc Ar file2
43511b41d2SMark Murray.Sm on
44d0c8c0bcSDag-Erling Smørgrav.Ek
45511b41d2SMark Murray.Sh DESCRIPTION
46511b41d2SMark Murray.Nm
47a8f6863aSKris Kennawaycopies files between hosts on a network.
48a8f6863aSKris KennawayIt uses
49511b41d2SMark Murray.Xr ssh 1
50511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the
51511b41d2SMark Murraysame security as
52511b41d2SMark Murray.Xr ssh 1 .
53511b41d2SMark MurrayUnlike
54511b41d2SMark Murray.Xr rcp 1 ,
55511b41d2SMark Murray.Nm
56511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for
57511b41d2SMark Murrayauthentication.
58511b41d2SMark Murray.Pp
59d4af9e69SDag-Erling SmørgravFile names may contain a user and host specification to indicate
60a8f6863aSKris Kennawaythat the file is to be copied to/from that host.
61d4af9e69SDag-Erling SmørgravLocal file names can be made explicit using absolute or relative pathnames
62d4af9e69SDag-Erling Smørgravto avoid
63d4af9e69SDag-Erling Smørgrav.Nm
64d4af9e69SDag-Erling Smørgravtreating file names containing
65d4af9e69SDag-Erling Smørgrav.Sq :\&
66d4af9e69SDag-Erling Smørgravas host specifiers.
67d4af9e69SDag-Erling SmørgravCopies between two remote hosts are also permitted.
68511b41d2SMark Murray.Pp
69511b41d2SMark MurrayThe options are as follows:
70511b41d2SMark Murray.Bl -tag -width Ds
71d0c8c0bcSDag-Erling Smørgrav.It Fl 1
72d0c8c0bcSDag-Erling SmørgravForces
73d0c8c0bcSDag-Erling Smørgrav.Nm
74d0c8c0bcSDag-Erling Smørgravto use protocol 1.
75d0c8c0bcSDag-Erling Smørgrav.It Fl 2
76d0c8c0bcSDag-Erling SmørgravForces
77d0c8c0bcSDag-Erling Smørgrav.Nm
78d0c8c0bcSDag-Erling Smørgravto use protocol 2.
79511b41d2SMark Murray.It Fl 4
80511b41d2SMark MurrayForces
81511b41d2SMark Murray.Nm
82511b41d2SMark Murrayto use IPv4 addresses only.
83511b41d2SMark Murray.It Fl 6
84511b41d2SMark MurrayForces
85511b41d2SMark Murray.Nm
86511b41d2SMark Murrayto use IPv6 addresses only.
87efcad6b7SDag-Erling Smørgrav.It Fl B
88efcad6b7SDag-Erling SmørgravSelects batch mode (prevents asking for passwords or passphrases).
89efcad6b7SDag-Erling Smørgrav.It Fl C
90efcad6b7SDag-Erling SmørgravCompression enable.
91efcad6b7SDag-Erling SmørgravPasses the
92efcad6b7SDag-Erling Smørgrav.Fl C
93efcad6b7SDag-Erling Smørgravflag to
94efcad6b7SDag-Erling Smørgrav.Xr ssh 1
95efcad6b7SDag-Erling Smørgravto enable compression.
96efcad6b7SDag-Erling Smørgrav.It Fl c Ar cipher
97efcad6b7SDag-Erling SmørgravSelects the cipher to use for encrypting the data transfer.
98efcad6b7SDag-Erling SmørgravThis option is directly passed to
99efcad6b7SDag-Erling Smørgrav.Xr ssh 1 .
100efcad6b7SDag-Erling Smørgrav.It Fl F Ar ssh_config
101efcad6b7SDag-Erling SmørgravSpecifies an alternative
102efcad6b7SDag-Erling Smørgravper-user configuration file for
103efcad6b7SDag-Erling Smørgrav.Nm ssh .
104efcad6b7SDag-Erling SmørgravThis option is directly passed to
105efcad6b7SDag-Erling Smørgrav.Xr ssh 1 .
106efcad6b7SDag-Erling Smørgrav.It Fl i Ar identity_file
107d4af9e69SDag-Erling SmørgravSelects the file from which the identity (private key) for public key
108efcad6b7SDag-Erling Smørgravauthentication is read.
109efcad6b7SDag-Erling SmørgravThis option is directly passed to
110efcad6b7SDag-Erling Smørgrav.Xr ssh 1 .
111efcad6b7SDag-Erling Smørgrav.It Fl l Ar limit
112efcad6b7SDag-Erling SmørgravLimits the used bandwidth, specified in Kbit/s.
113efcad6b7SDag-Erling Smørgrav.It Fl o Ar ssh_option
114efcad6b7SDag-Erling SmørgravCan be used to pass options to
115efcad6b7SDag-Erling Smørgrav.Nm ssh
116efcad6b7SDag-Erling Smørgravin the format used in
117efcad6b7SDag-Erling Smørgrav.Xr ssh_config 5 .
118efcad6b7SDag-Erling SmørgravThis is useful for specifying options
119efcad6b7SDag-Erling Smørgravfor which there is no separate
120efcad6b7SDag-Erling Smørgrav.Nm scp
121efcad6b7SDag-Erling Smørgravcommand-line flag.
122efcad6b7SDag-Erling SmørgravFor full details of the options listed below, and their possible values, see
123efcad6b7SDag-Erling Smørgrav.Xr ssh_config 5 .
124efcad6b7SDag-Erling Smørgrav.Pp
125efcad6b7SDag-Erling Smørgrav.Bl -tag -width Ds -offset indent -compact
126efcad6b7SDag-Erling Smørgrav.It AddressFamily
127efcad6b7SDag-Erling Smørgrav.It BatchMode
128efcad6b7SDag-Erling Smørgrav.It BindAddress
129efcad6b7SDag-Erling Smørgrav.It ChallengeResponseAuthentication
130efcad6b7SDag-Erling Smørgrav.It CheckHostIP
131efcad6b7SDag-Erling Smørgrav.It Cipher
132efcad6b7SDag-Erling Smørgrav.It Ciphers
133efcad6b7SDag-Erling Smørgrav.It Compression
134efcad6b7SDag-Erling Smørgrav.It CompressionLevel
135efcad6b7SDag-Erling Smørgrav.It ConnectionAttempts
136d74d50a8SDag-Erling Smørgrav.It ConnectTimeout
137d74d50a8SDag-Erling Smørgrav.It ControlMaster
138d74d50a8SDag-Erling Smørgrav.It ControlPath
139efcad6b7SDag-Erling Smørgrav.It GlobalKnownHostsFile
140efcad6b7SDag-Erling Smørgrav.It GSSAPIAuthentication
141efcad6b7SDag-Erling Smørgrav.It GSSAPIDelegateCredentials
1425e8dbd04SDag-Erling Smørgrav.It HashKnownHosts
143efcad6b7SDag-Erling Smørgrav.It Host
144efcad6b7SDag-Erling Smørgrav.It HostbasedAuthentication
145efcad6b7SDag-Erling Smørgrav.It HostKeyAlgorithms
146efcad6b7SDag-Erling Smørgrav.It HostKeyAlias
147efcad6b7SDag-Erling Smørgrav.It HostName
148efcad6b7SDag-Erling Smørgrav.It IdentityFile
14952028650SDag-Erling Smørgrav.It IdentitiesOnly
1505e8dbd04SDag-Erling Smørgrav.It KbdInteractiveDevices
151efcad6b7SDag-Erling Smørgrav.It LogLevel
152efcad6b7SDag-Erling Smørgrav.It MACs
153efcad6b7SDag-Erling Smørgrav.It NoHostAuthenticationForLocalhost
154efcad6b7SDag-Erling Smørgrav.It NumberOfPasswordPrompts
155efcad6b7SDag-Erling Smørgrav.It PasswordAuthentication
156efcad6b7SDag-Erling Smørgrav.It Port
157efcad6b7SDag-Erling Smørgrav.It PreferredAuthentications
158efcad6b7SDag-Erling Smørgrav.It Protocol
159efcad6b7SDag-Erling Smørgrav.It ProxyCommand
160efcad6b7SDag-Erling Smørgrav.It PubkeyAuthentication
161021d409fSDag-Erling Smørgrav.It RekeyLimit
162efcad6b7SDag-Erling Smørgrav.It RhostsRSAAuthentication
163efcad6b7SDag-Erling Smørgrav.It RSAAuthentication
164d74d50a8SDag-Erling Smørgrav.It SendEnv
165efcad6b7SDag-Erling Smørgrav.It ServerAliveInterval
166efcad6b7SDag-Erling Smørgrav.It ServerAliveCountMax
167efcad6b7SDag-Erling Smørgrav.It SmartcardDevice
168efcad6b7SDag-Erling Smørgrav.It StrictHostKeyChecking
169efcad6b7SDag-Erling Smørgrav.It TCPKeepAlive
170efcad6b7SDag-Erling Smørgrav.It UsePrivilegedPort
171efcad6b7SDag-Erling Smørgrav.It User
172efcad6b7SDag-Erling Smørgrav.It UserKnownHostsFile
173efcad6b7SDag-Erling Smørgrav.It VerifyHostKeyDNS
174efcad6b7SDag-Erling Smørgrav.El
175efcad6b7SDag-Erling Smørgrav.It Fl P Ar port
176efcad6b7SDag-Erling SmørgravSpecifies the port to connect to on the remote host.
177efcad6b7SDag-Erling SmørgravNote that this option is written with a capital
178efcad6b7SDag-Erling Smørgrav.Sq P ,
179efcad6b7SDag-Erling Smørgravbecause
180efcad6b7SDag-Erling Smørgrav.Fl p
181efcad6b7SDag-Erling Smørgravis already reserved for preserving the times and modes of the file in
182efcad6b7SDag-Erling Smørgrav.Xr rcp 1 .
183efcad6b7SDag-Erling Smørgrav.It Fl p
184efcad6b7SDag-Erling SmørgravPreserves modification times, access times, and modes from the
185efcad6b7SDag-Erling Smørgravoriginal file.
186efcad6b7SDag-Erling Smørgrav.It Fl q
187d4af9e69SDag-Erling SmørgravQuiet mode: disables the progress meter as well as warning and diagnostic
188d4af9e69SDag-Erling Smørgravmessages from
189d4af9e69SDag-Erling Smørgrav.Xr ssh 1 .
190efcad6b7SDag-Erling Smørgrav.It Fl r
191efcad6b7SDag-Erling SmørgravRecursively copy entire directories.
192d4af9e69SDag-Erling SmørgravNote that
193d4af9e69SDag-Erling Smørgrav.Nm
194d4af9e69SDag-Erling Smørgravfollows symbolic links encountered in the tree traversal.
195efcad6b7SDag-Erling Smørgrav.It Fl S Ar program
196efcad6b7SDag-Erling SmørgravName of
197efcad6b7SDag-Erling Smørgrav.Ar program
198efcad6b7SDag-Erling Smørgravto use for the encrypted connection.
199efcad6b7SDag-Erling SmørgravThe program must understand
200efcad6b7SDag-Erling Smørgrav.Xr ssh 1
201efcad6b7SDag-Erling Smørgravoptions.
202efcad6b7SDag-Erling Smørgrav.It Fl v
203efcad6b7SDag-Erling SmørgravVerbose mode.
204efcad6b7SDag-Erling SmørgravCauses
205efcad6b7SDag-Erling Smørgrav.Nm
206efcad6b7SDag-Erling Smørgravand
207efcad6b7SDag-Erling Smørgrav.Xr ssh 1
208efcad6b7SDag-Erling Smørgravto print debugging messages about their progress.
209efcad6b7SDag-Erling SmørgravThis is helpful in
210efcad6b7SDag-Erling Smørgravdebugging connection, authentication, and configuration problems.
211b66f2d16SKris Kennaway.El
212761efaa7SDag-Erling Smørgrav.Pp
213761efaa7SDag-Erling Smørgrav.Ex -std scp
214511b41d2SMark Murray.Sh SEE ALSO
215511b41d2SMark Murray.Xr rcp 1 ,
2161e8db6e2SBrian Feldman.Xr sftp 1 ,
217511b41d2SMark Murray.Xr ssh 1 ,
218511b41d2SMark Murray.Xr ssh-add 1 ,
219511b41d2SMark Murray.Xr ssh-agent 1 ,
220511b41d2SMark Murray.Xr ssh-keygen 1 ,
221ee21a45fSDag-Erling Smørgrav.Xr ssh_config 5 ,
222511b41d2SMark Murray.Xr sshd 8
223d95e11bfSDag-Erling Smørgrav.Sh HISTORY
224d95e11bfSDag-Erling Smørgrav.Nm
225d95e11bfSDag-Erling Smørgravis based on the
226d95e11bfSDag-Erling Smørgrav.Xr rcp 1
227d95e11bfSDag-Erling Smørgravprogram in BSD source code from the Regents of the University of
228d95e11bfSDag-Erling SmørgravCalifornia.
229d95e11bfSDag-Erling Smørgrav.Sh AUTHORS
230d95e11bfSDag-Erling Smørgrav.An Timo Rinne Aq tri@iki.fi
231d95e11bfSDag-Erling Smørgrav.An Tatu Ylonen Aq ylo@cs.hut.fi
232