]> andersk Git - openssh.git/blame - scp.1
- dtucker@cvs.openbsd.org 2008/06/14 19:42:10
[openssh.git] / scp.1
CommitLineData
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 48copies files between hosts on a network.
49It uses
bf740959 50.Xr ssh 1
51for data transfer, and uses the same authentication and provides the
52same security as
53.Xr ssh 1 .
54Unlike
55.Xr rcp 1 ,
56.Nm
57will ask for passwords or passphrases if they are needed for
58authentication.
59.Pp
51402e76 60File names may contain a user and host specification to indicate
4fe2af09 61that the file is to be copied to/from that host.
51402e76 62Local file names can be made explicit using absolute or relative pathnames
63to avoid
64.Nm
65treating file names containing
66.Sq :\&
67as host specifiers.
68Copies between two remote hosts are also permitted.
bf740959 69.Pp
70The options are as follows:
71.Bl -tag -width Ds
433e60ac 72.It Fl 1
73Forces
bf740959 74.Nm
433e60ac 75to use protocol 1.
76.It Fl 2
77Forces
78.Nm
79to use protocol 2.
80.It Fl 4
81Forces
82.Nm
83to use IPv4 addresses only.
84.It Fl 6
85Forces
86.Nm
87to use IPv6 addresses only.
bf740959 88.It Fl B
89Selects batch mode (prevents asking for passwords or passphrases).
bf740959 90.It Fl C
4fe2af09 91Compression enable.
92Passes the
bf740959 93.Fl C
94flag to
95.Xr ssh 1
96to enable compression.
433e60ac 97.It Fl c Ar cipher
98Selects the cipher to use for encrypting the data transfer.
99This option is directly passed to
100.Xr ssh 1 .
f1278af7 101.It Fl F Ar ssh_config
102Specifies an alternative
103per-user configuration file for
104.Nm ssh .
105This option is directly passed to
106.Xr ssh 1 .
433e60ac 107.It Fl i Ar identity_file
108Selects the file from which the identity (private key) for RSA
109authentication is read.
110This option is directly passed to
111.Xr ssh 1 .
112.It Fl l Ar limit
113Limits the used bandwidth, specified in Kbit/s.
114.It Fl o Ar ssh_option
115Can be used to pass options to
116.Nm ssh
117in the format used in
118.Xr ssh_config 5 .
119This is useful for specifying options
120for which there is no separate
121.Nm scp
122command-line flag.
123For 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 177Specifies the port to connect to on the remote host.
178Note that this option is written with a capital
bf740959 179.Sq P ,
180because
181.Fl p
182is already reserved for preserving the times and modes of the file in
183.Xr rcp 1 .
433e60ac 184.It Fl p
185Preserves modification times, access times, and modes from the
186original file.
187.It Fl q
127b07bd 188Quiet mode: disables the progress meter as well as warning and diagnostic
189messages from
190.Xr ssh 1 .
433e60ac 191.It Fl r
192Recursively copy entire directories.
49c5f262 193Note that
194.Nm
195follows symbolic links encountered in the tree traversal.
b5e300c2 196.It Fl S Ar program
197Name of
198.Ar program
94ec8c6b 199to use for the encrypted connection.
200The program must understand
2e73a022 201.Xr ssh 1
202options.
433e60ac 203.It Fl v
204Verbose mode.
205Causes
48e671d5 206.Nm
433e60ac 207and
208.Xr ssh 1
209to print debugging messages about their progress.
210This is helpful in
211debugging 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
226is based on the
227.Xr rcp 1
228program in BSD source code from the Regents of the University of
229California.
230.Sh AUTHORS
231.An Timo Rinne Aq tri@iki.fi
be193d89 232.An Tatu Ylonen Aq ylo@cs.hut.fi
This page took 0.310374 seconds and 5 git commands to generate.