summaryrefslogtreecommitdiff
path: root/scp.1
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-10-15 15:50:42 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-10-15 15:50:42 +1000
commit1f20394e92afa417c1201506f9ae8683170ac496 (patch)
treedc4552b853891fb2fba19f404da087062622bf97 /scp.1
parent439ce0daf95fef595ba2592d16b17401a8bee135 (diff)
- jmc@cvs.openbsd.org 2003/10/08 08:27:36
[scp.1 scp.c sftp-server.8 sftp.1 sftp.c ssh.1 sshd.8] scp and sftp: add options list and sort options. options list requested by deraadt@ sshd: use same format as ssh ssh: remove wrong option from list sftp-server: Subsystem is documented in ssh_config(5), not sshd(8) ok deraadt@ markus@
Diffstat (limited to 'scp.1')
-rw-r--r--scp.1168
1 files changed, 110 insertions, 58 deletions
diff --git a/scp.1 b/scp.1
index a971500ee..bdc413337 100644
--- a/scp.1
+++ b/scp.1
@@ -9,7 +9,7 @@
9.\" 9.\"
10.\" Created: Sun May 7 00:14:37 1995 ylo 10.\" Created: Sun May 7 00:14:37 1995 ylo
11.\" 11.\"
12.\" $OpenBSD: scp.1,v 1.28 2003/06/10 09:12:11 jmc Exp $ 12.\" $OpenBSD: scp.1,v 1.29 2003/10/08 08:27:36 jmc Exp $
13.\" 13.\"
14.Dd September 25, 1999 14.Dd September 25, 1999
15.Dt SCP 1 15.Dt SCP 1
@@ -20,24 +20,24 @@
20.Sh SYNOPSIS 20.Sh SYNOPSIS
21.Nm scp 21.Nm scp
22.Bk -words 22.Bk -words
23.Op Fl pqrvBC1246 23.Op Fl 1246BCpqrv
24.Op Fl F Ar ssh_config
25.Op Fl S Ar program
26.Op Fl P Ar port
27.Op Fl c Ar cipher 24.Op Fl c Ar cipher
25.Op Fl F Ar ssh_config
28.Op Fl i Ar identity_file 26.Op Fl i Ar identity_file
29.Op Fl l Ar limit 27.Op Fl l Ar limit
30.Op Fl o Ar ssh_option 28.Op Fl o Ar ssh_option
29.Op Fl P Ar port
30.Op Fl S Ar program
31.Sm off 31.Sm off
32.Oo 32.Oo
33.Op Ar user@ 33.Op Ar user No @
34.Ar host1 No : 34.Ar host1 No :
35.Oc Ns Ar file1 35.Oc Ns Ar file1
36.Sm on 36.Sm on
37.Op Ar ... 37.Op Ar ...
38.Sm off 38.Sm off
39.Oo 39.Oo
40.Op Ar user@ 40.Op Ar user No @
41.Ar host2 No : 41.Ar host2 No :
42.Oc Ar file2 42.Oc Ar file2
43.Sm on 43.Sm on
@@ -62,35 +62,24 @@ Copies between two remote hosts are permitted.
62.Pp 62.Pp
63The options are as follows: 63The options are as follows:
64.Bl -tag -width Ds 64.Bl -tag -width Ds
65.It Fl c Ar cipher 65.It Fl 1
66Selects the cipher to use for encrypting the data transfer. 66Forces
67This option is directly passed to
68.Xr ssh 1 .
69.It Fl i Ar identity_file
70Selects the file from which the identity (private key) for RSA
71authentication is read.
72This option is directly passed to
73.Xr ssh 1 .
74.It Fl l Ar limit
75Limits the used bandwidth, specified in Kbit/s.
76.It Fl p
77Preserves modification times, access times, and modes from the
78original file.
79.It Fl r
80Recursively copy entire directories.
81.It Fl v
82Verbose mode.
83Causes
84.Nm 67.Nm
85and 68to use protocol 1.
86.Xr ssh 1 69.It Fl 2
87to print debugging messages about their progress. 70Forces
88This is helpful in 71.Nm
89debugging connection, authentication, and configuration problems. 72to use protocol 2.
73.It Fl 4
74Forces
75.Nm
76to use IPv4 addresses only.
77.It Fl 6
78Forces
79.Nm
80to use IPv6 addresses only.
90.It Fl B 81.It Fl B
91Selects batch mode (prevents asking for passwords or passphrases). 82Selects batch mode (prevents asking for passwords or passphrases).
92.It Fl q
93Disables the progress meter.
94.It Fl C 83.It Fl C
95Compression enable. 84Compression enable.
96Passes the 85Passes the
@@ -98,12 +87,85 @@ Passes the
98flag to 87flag to
99.Xr ssh 1 88.Xr ssh 1
100to enable compression. 89to enable compression.
90.It Fl c Ar cipher
91Selects the cipher to use for encrypting the data transfer.
92This option is directly passed to
93.Xr ssh 1 .
101.It Fl F Ar ssh_config 94.It Fl F Ar ssh_config
102Specifies an alternative 95Specifies an alternative
103per-user configuration file for 96per-user configuration file for
104.Nm ssh . 97.Nm ssh .
105This option is directly passed to 98This option is directly passed to
106.Xr ssh 1 . 99.Xr ssh 1 .
100.It Fl i Ar identity_file
101Selects the file from which the identity (private key) for RSA
102authentication is read.
103This option is directly passed to
104.Xr ssh 1 .
105.It Fl l Ar limit
106Limits the used bandwidth, specified in Kbit/s.
107.It Fl o Ar ssh_option
108Can be used to pass options to
109.Nm ssh
110in the format used in
111.Xr ssh_config 5 .
112This is useful for specifying options
113for which there is no separate
114.Nm scp
115command-line flag.
116For full details of the options listed below, and their possible values, see
117.Xr ssh_config 5 .
118.Pp
119.Bl -tag -width Ds -offset indent -compact
120.It AddressFamily
121.It BatchMode
122.It BindAddress
123.It ChallengeResponseAuthentication
124.It CheckHostIP
125.It Cipher
126.It Ciphers
127.It ClearAllForwardings
128.It Compression
129.It CompressionLevel
130.It ConnectionAttempts
131.It ConnectionTimeout
132.It DynamicForward
133.It EscapeChar
134.It ForwardAgent
135.It ForwardX11
136.It GatewayPorts
137.It GlobalKnownHostsFile
138.It GSSAPIAuthentication
139.It GSSAPIDelegateCredentials
140.It Host
141.It HostbasedAuthentication
142.It HostKeyAlgorithms
143.It HostKeyAlias
144.It HostName
145.It IdentityFile
146.It KeepAlive
147.It LocalForward
148.It LogLevel
149.It MACs
150.It NoHostAuthenticationForLocalhost
151.It NumberOfPasswordPrompts
152.It PasswordAuthentication
153.It Port
154.It PreferredAuthentications
155.It Protocol
156.It ProxyCommand
157.It PubkeyAuthentication
158.It RemoteForward
159.It RhostsRSAAuthentication
160.It RSAAuthentication
161.It SmartcardDevice
162.It StrictHostKeyChecking
163.It UsePrivilegedPort
164.It User
165.It UserKnownHostsFile
166.It VerifyHostKeyDNS
167.It XAuthLocation
168.El
107.It Fl P Ar port 169.It Fl P Ar port
108Specifies the port to connect to on the remote host. 170Specifies the port to connect to on the remote host.
109Note that this option is written with a capital 171Note that this option is written with a capital
@@ -112,6 +174,13 @@ because
112.Fl p 174.Fl p
113is already reserved for preserving the times and modes of the file in 175is already reserved for preserving the times and modes of the file in
114.Xr rcp 1 . 176.Xr rcp 1 .
177.It Fl p
178Preserves modification times, access times, and modes from the
179original file.
180.It Fl q
181Disables the progress meter.
182.It Fl r
183Recursively copy entire directories.
115.It Fl S Ar program 184.It Fl S Ar program
116Name of 185Name of
117.Ar program 186.Ar program
@@ -119,31 +188,15 @@ to use for the encrypted connection.
119The program must understand 188The program must understand
120.Xr ssh 1 189.Xr ssh 1
121options. 190options.
122.It Fl o Ar ssh_option 191.It Fl v
123Can be used to pass options to 192Verbose mode.
124.Nm ssh 193Causes
125in the format used in
126.Xr ssh_config 5 .
127This is useful for specifying options
128for which there is no separate
129.Nm scp
130command-line flag.
131.It Fl 1
132Forces
133.Nm
134to use protocol 1.
135.It Fl 2
136Forces
137.Nm
138to use protocol 2.
139.It Fl 4
140Forces
141.Nm
142to use IPv4 addresses only.
143.It Fl 6
144Forces
145.Nm 194.Nm
146to use IPv6 addresses only. 195and
196.Xr ssh 1
197to print debugging messages about their progress.
198This is helpful in
199debugging connection, authentication, and configuration problems.
147.El 200.El
148.Sh DIAGNOSTICS 201.Sh DIAGNOSTICS
149.Nm 202.Nm
@@ -165,5 +218,4 @@ program in BSD source code from the Regents of the University of
165California. 218California.
166.Sh AUTHORS 219.Sh AUTHORS
167.An Timo Rinne Aq tri@iki.fi 220.An Timo Rinne Aq tri@iki.fi
168and
169.An Tatu Ylonen Aq ylo@cs.hut.fi 221.An Tatu Ylonen Aq ylo@cs.hut.fi