~ubuntu-branches/ubuntu/lucid/openssh/lucid

1 by Noah Meyerhans
Import upstream version 3.8.1p1
1
.\"  -*- nroff -*-
2
.\"
3
.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
4
.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5
.\"                    All rights reserved
6
.\"
7
.\" As far as I am concerned, the code I have written for this software
8
.\" can be used freely for any purpose.  Any derived versions of this
9
.\" software must be clearly marked as such, and if the derived work is
10
.\" incompatible with the protocol description in the RFC file, it must be
11
.\" called by a name other than "ssh" or "Secure Shell".
12
.\"
13
.\" Copyright (c) 1999,2000 Markus Friedl.  All rights reserved.
14
.\" Copyright (c) 1999 Aaron Campbell.  All rights reserved.
15
.\" Copyright (c) 1999 Theo de Raadt.  All rights reserved.
16
.\"
17
.\" Redistribution and use in source and binary forms, with or without
18
.\" modification, are permitted provided that the following conditions
19
.\" are met:
20
.\" 1. Redistributions of source code must retain the above copyright
21
.\"    notice, this list of conditions and the following disclaimer.
22
.\" 2. Redistributions in binary form must reproduce the above copyright
23
.\"    notice, this list of conditions and the following disclaimer in the
24
.\"    documentation and/or other materials provided with the distribution.
25
.\"
26
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
.\"
1.13.4 by Colin Watson
Import upstream version 5.2p1
37
.\" $OpenBSD: ssh_config.5,v 1.119 2009/02/22 23:50:57 djm Exp $
38
.Dd $Mdocdate: February 22 2009 $
1 by Noah Meyerhans
Import upstream version 3.8.1p1
39
.Dt SSH_CONFIG 5
40
.Os
41
.Sh NAME
42
.Nm ssh_config
43
.Nd OpenSSH SSH client configuration files
44
.Sh SYNOPSIS
1.13.1 by Colin Watson
Import upstream version 4.6p1
45
.Nm ~/.ssh/config
46
.Nm /etc/ssh/ssh_config
1 by Noah Meyerhans
Import upstream version 3.8.1p1
47
.Sh DESCRIPTION
1.13.1 by Colin Watson
Import upstream version 4.6p1
48
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
49
obtains configuration data from the following sources in
50
the following order:
1.13.1 by Colin Watson
Import upstream version 4.6p1
51
.Pp
1 by Noah Meyerhans
Import upstream version 3.8.1p1
52
.Bl -enum -offset indent -compact
53
.It
54
command-line options
55
.It
56
user's configuration file
1.1.3 by Colin Watson
Import upstream version 4.2p1
57
.Pq Pa ~/.ssh/config
1 by Noah Meyerhans
Import upstream version 3.8.1p1
58
.It
59
system-wide configuration file
60
.Pq Pa /etc/ssh/ssh_config
61
.El
62
.Pp
63
For each parameter, the first obtained value
64
will be used.
1.1.2 by Colin Watson
Import upstream version 4.1p1
65
The configuration files contain sections separated by
1 by Noah Meyerhans
Import upstream version 3.8.1p1
66
.Dq Host
67
specifications, and that section is only applied for hosts that
68
match one of the patterns given in the specification.
69
The matched host name is the one given on the command line.
70
.Pp
71
Since the first obtained value for each parameter is used, more
72
host-specific declarations should be given near the beginning of the
73
file, and general defaults at the end.
74
.Pp
27 by Colin Watson
* New upstream release (closes: #453367).
75
Note that the Debian
76
.Ic openssh-client
77
package sets several options as standard in
78
.Pa /etc/ssh/ssh_config
79
which are not the default in
80
.Xr ssh 1 :
81
.Pp
82
.Bl -bullet -offset indent -compact
83
.It
84
.Cm SendEnv No LANG LC_*
85
.It
86
.Cm HashKnownHosts No yes
87
.It
88
.Cm GSSAPIAuthentication No yes
89
.El
90
.Pp
1 by Noah Meyerhans
Import upstream version 3.8.1p1
91
The configuration file has the following format:
92
.Pp
93
Empty lines and lines starting with
94
.Ql #
95
are comments.
96
Otherwise a line is of the format
97
.Dq keyword arguments .
98
Configuration options may be separated by whitespace or
99
optional whitespace and exactly one
100
.Ql = ;
101
the latter format is useful to avoid the need to quote whitespace
102
when specifying configuration options using the
103
.Nm ssh ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
104
.Nm scp ,
1 by Noah Meyerhans
Import upstream version 3.8.1p1
105
and
106
.Nm sftp
107
.Fl o
108
option.
1.13.1 by Colin Watson
Import upstream version 4.6p1
109
Arguments may optionally be enclosed in double quotes
110
.Pq \&"
111
in order to represent arguments containing spaces.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
112
.Pp
113
The possible
114
keywords and their meanings are as follows (note that
115
keywords are case-insensitive and arguments are case-sensitive):
116
.Bl -tag -width Ds
117
.It Cm Host
118
Restricts the following declarations (up to the next
119
.Cm Host
120
keyword) to be only for those hosts that match one of the patterns
121
given after the keyword.
1.13.4 by Colin Watson
Import upstream version 5.2p1
122
If more than one pattern is provided, they should be separated by whitespace.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
123
A single
1.13.1 by Colin Watson
Import upstream version 4.6p1
124
.Ql *
1 by Noah Meyerhans
Import upstream version 3.8.1p1
125
as a pattern can be used to provide global
126
defaults for all hosts.
127
The host is the
128
.Ar hostname
1.13.1 by Colin Watson
Import upstream version 4.6p1
129
argument given on the command line (i.e. the name is not converted to
1 by Noah Meyerhans
Import upstream version 3.8.1p1
130
a canonicalized host name before matching).
1.13.1 by Colin Watson
Import upstream version 4.6p1
131
.Pp
132
See
133
.Sx PATTERNS
134
for more information on patterns.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
135
.It Cm AddressFamily
136
Specifies which address family to use when connecting.
137
Valid arguments are
138
.Dq any ,
139
.Dq inet
1.13.1 by Colin Watson
Import upstream version 4.6p1
140
(use IPv4 only), or
1 by Noah Meyerhans
Import upstream version 3.8.1p1
141
.Dq inet6
1.1.2 by Colin Watson
Import upstream version 4.1p1
142
(use IPv6 only).
1 by Noah Meyerhans
Import upstream version 3.8.1p1
143
.It Cm BatchMode
144
If set to
145
.Dq yes ,
146
passphrase/password querying will be disabled.
2 by Colin Watson
* Nathaniel McCallum:
147
In addition, the 
148
.Cm ServerAliveInterval 
41 by Colin Watson
* Resynchronise with Debian. Remaining changes:
149
option will be set to 300 seconds by default.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
150
This option is useful in scripts and other batch jobs where no user
2 by Colin Watson
* Nathaniel McCallum:
151
is present to supply the password,
21 by Colin Watson
* New upstream release (closes: #395507, #397961, #420035). Important
152
and where it is desirable to detect a broken network swiftly.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
153
The argument must be
154
.Dq yes
155
or
156
.Dq no .
157
The default is
158
.Dq no .
159
.It Cm BindAddress
1.1.3 by Colin Watson
Import upstream version 4.2p1
160
Use the specified address on the local machine as the source address of
161
the connection.
162
Only useful on systems with more than one address.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
163
Note that this option does not work if
164
.Cm UsePrivilegedPort
165
is set to
166
.Dq yes .
167
.It Cm ChallengeResponseAuthentication
1.13.1 by Colin Watson
Import upstream version 4.6p1
168
Specifies whether to use challenge-response authentication.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
169
The argument to this keyword must be
170
.Dq yes
171
or
172
.Dq no .
173
The default is
174
.Dq yes .
175
.It Cm CheckHostIP
176
If this flag is set to
177
.Dq yes ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
178
.Xr ssh 1
179
will additionally check the host IP address in the
1 by Noah Meyerhans
Import upstream version 3.8.1p1
180
.Pa known_hosts
181
file.
182
This allows ssh to detect if a host key changed due to DNS spoofing.
183
If the option is set to
184
.Dq no ,
185
the check will not be executed.
186
The default is
187
.Dq yes .
188
.It Cm Cipher
189
Specifies the cipher to use for encrypting the session
190
in protocol version 1.
191
Currently,
192
.Dq blowfish ,
193
.Dq 3des ,
194
and
195
.Dq des
196
are supported.
197
.Ar des
198
is only supported in the
1.13.1 by Colin Watson
Import upstream version 4.6p1
199
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
200
client for interoperability with legacy protocol 1 implementations
201
that do not support the
202
.Ar 3des
203
cipher.
204
Its use is strongly discouraged due to cryptographic weaknesses.
205
The default is
206
.Dq 3des .
207
.It Cm Ciphers
208
Specifies the ciphers allowed for protocol version 2
209
in order of preference.
210
Multiple ciphers must be comma-separated.
1.1.1 by Colin Watson
Import upstream version 3.9p1
211
The supported ciphers are
212
.Dq 3des-cbc ,
213
.Dq aes128-cbc ,
214
.Dq aes192-cbc ,
215
.Dq aes256-cbc ,
216
.Dq aes128-ctr ,
217
.Dq aes192-ctr ,
218
.Dq aes256-ctr ,
1.1.3 by Colin Watson
Import upstream version 4.2p1
219
.Dq arcfour128 ,
220
.Dq arcfour256 ,
1.1.1 by Colin Watson
Import upstream version 3.9p1
221
.Dq arcfour ,
222
.Dq blowfish-cbc ,
223
and
224
.Dq cast128-cbc .
1.13.1 by Colin Watson
Import upstream version 4.6p1
225
The default is:
226
.Bd -literal -offset 3n
1.13.4 by Colin Watson
Import upstream version 5.2p1
227
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
228
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
229
aes256-cbc,arcfour
1 by Noah Meyerhans
Import upstream version 3.8.1p1
230
.Ed
231
.It Cm ClearAllForwardings
1.13.1 by Colin Watson
Import upstream version 4.6p1
232
Specifies that all local, remote, and dynamic port forwardings
1 by Noah Meyerhans
Import upstream version 3.8.1p1
233
specified in the configuration files or on the command line be
234
cleared.
235
This option is primarily useful when used from the
1.13.1 by Colin Watson
Import upstream version 4.6p1
236
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
237
command line to clear port forwardings set in
238
configuration files, and is automatically set by
239
.Xr scp 1
240
and
241
.Xr sftp 1 .
242
The argument must be
243
.Dq yes
244
or
245
.Dq no .
246
The default is
247
.Dq no .
248
.It Cm Compression
249
Specifies whether to use compression.
250
The argument must be
251
.Dq yes
252
or
253
.Dq no .
254
The default is
255
.Dq no .
256
.It Cm CompressionLevel
257
Specifies the compression level to use if compression is enabled.
258
The argument must be an integer from 1 (fast) to 9 (slow, best).
259
The default level is 6, which is good for most applications.
260
The meaning of the values is the same as in
261
.Xr gzip 1 .
262
Note that this option applies to protocol version 1 only.
263
.It Cm ConnectionAttempts
264
Specifies the number of tries (one per second) to make before exiting.
265
The argument must be an integer.
266
This may be useful in scripts if the connection sometimes fails.
267
The default is 1.
268
.It Cm ConnectTimeout
1.13.1 by Colin Watson
Import upstream version 4.6p1
269
Specifies the timeout (in seconds) used when connecting to the
270
SSH server, instead of using the default system TCP timeout.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
271
This value is used only when the target is down or really unreachable,
272
not when it refuses the connection.
1.1.1 by Colin Watson
Import upstream version 3.9p1
273
.It Cm ControlMaster
274
Enables the sharing of multiple sessions over a single network connection.
275
When set to
1.13.1 by Colin Watson
Import upstream version 4.6p1
276
.Dq yes ,
277
.Xr ssh 1
1.1.1 by Colin Watson
Import upstream version 3.9p1
278
will listen for connections on a control socket specified using the
279
.Cm ControlPath
280
argument.
281
Additional sessions can connect to this socket using the same
282
.Cm ControlPath
283
with
284
.Cm ControlMaster
285
set to
286
.Dq no
287
(the default).
1.6.1 by Colin Watson
Import upstream version 4.3p2
288
These sessions will try to reuse the master instance's network connection
289
rather than initiating new ones, but will fall back to connecting normally
290
if the control socket does not exist, or is not listening.
291
.Pp
1.1.1 by Colin Watson
Import upstream version 3.9p1
292
Setting this to
293
.Dq ask
1.13.1 by Colin Watson
Import upstream version 4.6p1
294
will cause ssh
1.1.1 by Colin Watson
Import upstream version 3.9p1
295
to listen for control connections, but require confirmation using the
296
.Ev SSH_ASKPASS
297
program before they are accepted (see
298
.Xr ssh-add 1
299
for details).
1.1.3 by Colin Watson
Import upstream version 4.2p1
300
If the
301
.Cm ControlPath
1.13.1 by Colin Watson
Import upstream version 4.6p1
302
cannot be opened,
303
ssh will continue without connecting to a master instance.
1.1.3 by Colin Watson
Import upstream version 4.2p1
304
.Pp
305
X11 and
306
.Xr ssh-agent 1
307
forwarding is supported over these multiplexed connections, however the
1.6.1 by Colin Watson
Import upstream version 4.3p2
308
display and agent forwarded will be the one belonging to the master
1.1.3 by Colin Watson
Import upstream version 4.2p1
309
connection i.e. it is not possible to forward multiple displays or agents.
310
.Pp
311
Two additional options allow for opportunistic multiplexing: try to use a
312
master connection but fall back to creating a new one if one does not already
313
exist.
314
These options are:
315
.Dq auto
316
and
317
.Dq autoask .
318
The latter requires confirmation like the
319
.Dq ask
320
option.
1.1.1 by Colin Watson
Import upstream version 3.9p1
321
.It Cm ControlPath
1.1.3 by Colin Watson
Import upstream version 4.2p1
322
Specify the path to the control socket used for connection sharing as described
323
in the
1.1.1 by Colin Watson
Import upstream version 3.9p1
324
.Cm ControlMaster
1.1.3 by Colin Watson
Import upstream version 4.2p1
325
section above or the string
326
.Dq none
327
to disable connection sharing.
328
In the path,
1.13.1 by Colin Watson
Import upstream version 4.6p1
329
.Ql %l
330
will be substituted by the local host name,
1.1.3 by Colin Watson
Import upstream version 4.2p1
331
.Ql %h
332
will be substituted by the target host name,
333
.Ql %p
1.13.1 by Colin Watson
Import upstream version 4.6p1
334
the port, and
1.1.3 by Colin Watson
Import upstream version 4.2p1
335
.Ql %r
336
by the remote login username.
337
It is recommended that any
338
.Cm ControlPath
339
used for opportunistic connection sharing include
1.13.1 by Colin Watson
Import upstream version 4.6p1
340
at least %h, %p, and %r.
1.1.3 by Colin Watson
Import upstream version 4.2p1
341
This ensures that shared connections are uniquely identified.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
342
.It Cm DynamicForward
1.6.1 by Colin Watson
Import upstream version 4.3p2
343
Specifies that a TCP port on the local machine be forwarded
1 by Noah Meyerhans
Import upstream version 3.8.1p1
344
over the secure channel, and the application
345
protocol is then used to determine where to connect to from the
346
remote machine.
1.6.1 by Colin Watson
Import upstream version 4.3p2
347
.Pp
348
The argument must be
349
.Sm off
350
.Oo Ar bind_address : Oc Ar port .
351
.Sm on
352
IPv6 addresses can be specified by enclosing addresses in square brackets or
353
by using an alternative syntax:
354
.Oo Ar bind_address Ns / Oc Ns Ar port .
355
By default, the local port is bound in accordance with the
356
.Cm GatewayPorts
357
setting.
358
However, an explicit
359
.Ar bind_address
360
may be used to bind the connection to a specific address.
361
The
362
.Ar bind_address
363
of
364
.Dq localhost
365
indicates that the listening port be bound for local use only, while an
366
empty address or
367
.Sq *
368
indicates that the port should be available from all interfaces.
369
.Pp
1 by Noah Meyerhans
Import upstream version 3.8.1p1
370
Currently the SOCKS4 and SOCKS5 protocols are supported, and
1.13.1 by Colin Watson
Import upstream version 4.6p1
371
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
372
will act as a SOCKS server.
373
Multiple forwardings may be specified, and
374
additional forwardings can be given on the command line.
375
Only the superuser can forward privileged ports.
376
.It Cm EnableSSHKeysign
377
Setting this option to
378
.Dq yes
379
in the global client configuration file
380
.Pa /etc/ssh/ssh_config
381
enables the use of the helper program
382
.Xr ssh-keysign 8
383
during
384
.Cm HostbasedAuthentication .
385
The argument must be
386
.Dq yes
387
or
388
.Dq no .
389
The default is
390
.Dq no .
391
This option should be placed in the non-hostspecific section.
392
See
393
.Xr ssh-keysign 8
394
for more information.
395
.It Cm EscapeChar
396
Sets the escape character (default:
397
.Ql ~ ) .
398
The escape character can also
399
be set on the command line.
400
The argument should be a single character,
401
.Ql ^
402
followed by a letter, or
403
.Dq none
404
to disable the escape
405
character entirely (making the connection transparent for binary
406
data).
1.13.1 by Colin Watson
Import upstream version 4.6p1
407
.It Cm ExitOnForwardFailure
408
Specifies whether
409
.Xr ssh 1
410
should terminate the connection if it cannot set up all requested
1.13.2 by Colin Watson
Import upstream version 4.7p1
411
dynamic, tunnel, local, and remote port forwardings.
1.13.1 by Colin Watson
Import upstream version 4.6p1
412
The argument must be
413
.Dq yes
414
or
415
.Dq no .
416
The default is
417
.Dq no .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
418
.It Cm ForwardAgent
419
Specifies whether the connection to the authentication agent (if any)
420
will be forwarded to the remote machine.
421
The argument must be
422
.Dq yes
423
or
424
.Dq no .
425
The default is
426
.Dq no .
427
.Pp
428
Agent forwarding should be enabled with caution.
429
Users with the ability to bypass file permissions on the remote host
430
(for the agent's Unix-domain socket)
431
can access the local agent through the forwarded connection.
432
An attacker cannot obtain key material from the agent,
433
however they can perform operations on the keys that enable them to
434
authenticate using the identities loaded into the agent.
435
.It Cm ForwardX11
436
Specifies whether X11 connections will be automatically redirected
437
over the secure channel and
438
.Ev DISPLAY
439
set.
440
The argument must be
441
.Dq yes
442
or
443
.Dq no .
444
The default is
445
.Dq no .
446
.Pp
447
X11 forwarding should be enabled with caution.
448
Users with the ability to bypass file permissions on the remote host
449
(for the user's X11 authorization database)
450
can access the local X11 display through the forwarded connection.
451
An attacker may then be able to perform activities such as keystroke monitoring
452
if the
453
.Cm ForwardX11Trusted
454
option is also enabled.
455
.It Cm ForwardX11Trusted
1.1.1 by Colin Watson
Import upstream version 3.9p1
456
If this option is set to
1.13.1 by Colin Watson
Import upstream version 4.6p1
457
.Dq yes ,
458
remote X11 clients will have full access to the original X11 display.
1.1.2 by Colin Watson
Import upstream version 4.1p1
459
.Pp
1.13.1 by Colin Watson
Import upstream version 4.6p1
460
If this option is set to
461
.Dq no ,
462
remote X11 clients will be considered untrusted and prevented
1 by Noah Meyerhans
Import upstream version 3.8.1p1
463
from stealing or tampering with data belonging to trusted X11
464
clients.
1.1.2 by Colin Watson
Import upstream version 4.1p1
465
Furthermore, the
466
.Xr xauth 1
467
token used for the session will be set to expire after 20 minutes.
468
Remote clients will be refused access after this time.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
469
.Pp
470
The default is
2 by Colin Watson
* Nathaniel McCallum:
471
.Dq yes
472
(Debian-specific).
1 by Noah Meyerhans
Import upstream version 3.8.1p1
473
.Pp
474
See the X11 SECURITY extension specification for full details on
475
the restrictions imposed on untrusted clients.
476
.It Cm GatewayPorts
477
Specifies whether remote hosts are allowed to connect to local
478
forwarded ports.
479
By default,
1.13.1 by Colin Watson
Import upstream version 4.6p1
480
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
481
binds local port forwardings to the loopback address.
482
This prevents other remote hosts from connecting to forwarded ports.
483
.Cm GatewayPorts
1.13.1 by Colin Watson
Import upstream version 4.6p1
484
can be used to specify that ssh
1 by Noah Meyerhans
Import upstream version 3.8.1p1
485
should bind local port forwardings to the wildcard address,
486
thus allowing remote hosts to connect to forwarded ports.
487
The argument must be
488
.Dq yes
489
or
490
.Dq no .
491
The default is
492
.Dq no .
493
.It Cm GlobalKnownHostsFile
494
Specifies a file to use for the global
495
host key database instead of
496
.Pa /etc/ssh/ssh_known_hosts .
497
.It Cm GSSAPIAuthentication
498
Specifies whether user authentication based on GSSAPI is allowed.
499
The default is
500
.Dq no .
501
Note that this option applies to protocol version 2 only.
21 by Colin Watson
* New upstream release (closes: #395507, #397961, #420035). Important
502
.It Cm GSSAPIKeyExchange
503
Specifies whether key exchange based on GSSAPI may be used. When using
504
GSSAPI key exchange the server need not have a host key.
505
The default is
506
.Dq no .
507
Note that this option applies to protocol version 2 only.
23.1.7 by Colin Watson
* New upstream release (closes: #536182). Yes, I know 5.3p1 has been out
508
.It Cm GSSAPIClientIdentity
509
If set, specifies the GSSAPI client identity that ssh should use when 
510
connecting to the server. The default is unset, which means that the default 
511
identity will be used.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
512
.It Cm GSSAPIDelegateCredentials
513
Forward (delegate) credentials to the server.
514
The default is
515
.Dq no .
23.1.7 by Colin Watson
* New upstream release (closes: #536182). Yes, I know 5.3p1 has been out
516
Note that this option applies to protocol version 2 connections using GSSAPI.
517
.It Cm GSSAPIRenewalForcesRekey
518
If set to 
519
.Dq yes
520
then renewal of the client's GSSAPI credentials will force the rekeying of the
521
ssh connection. With a compatible server, this can delegate the renewed 
522
credentials to a session on the server.
523
The default is
524
.Dq no .
10 by Colin Watson
* Resynchronise with Debian.
525
.It Cm GSSAPITrustDns
526
Set to 
23.1.7 by Colin Watson
* New upstream release (closes: #536182). Yes, I know 5.3p1 has been out
527
.Dq yes to indicate that the DNS is trusted to securely canonicalize
10 by Colin Watson
* Resynchronise with Debian.
528
the name of the host being connected to. If 
23.1.7 by Colin Watson
* New upstream release (closes: #536182). Yes, I know 5.3p1 has been out
529
.Dq no, the hostname entered on the
10 by Colin Watson
* Resynchronise with Debian.
530
command line will be passed untouched to the GSSAPI library.
531
The default is
532
.Dq no .
21 by Colin Watson
* New upstream release (closes: #395507, #397961, #420035). Important
533
This option only applies to protocol version 2 connections using GSSAPI.
1.1.2 by Colin Watson
Import upstream version 4.1p1
534
.It Cm HashKnownHosts
535
Indicates that
1.13.1 by Colin Watson
Import upstream version 4.6p1
536
.Xr ssh 1
1.1.2 by Colin Watson
Import upstream version 4.1p1
537
should hash host names and addresses when they are added to
1.1.3 by Colin Watson
Import upstream version 4.2p1
538
.Pa ~/.ssh/known_hosts .
1.1.2 by Colin Watson
Import upstream version 4.1p1
539
These hashed names may be used normally by
1.13.1 by Colin Watson
Import upstream version 4.6p1
540
.Xr ssh 1
1.1.2 by Colin Watson
Import upstream version 4.1p1
541
and
1.13.1 by Colin Watson
Import upstream version 4.6p1
542
.Xr sshd 8 ,
1.1.2 by Colin Watson
Import upstream version 4.1p1
543
but they do not reveal identifying information should the file's contents
544
be disclosed.
545
The default is
546
.Dq no .
1.13.1 by Colin Watson
Import upstream version 4.6p1
547
Note that existing names and addresses in known hosts files
548
will not be converted automatically,
549
but may be manually hashed using
1.1.2 by Colin Watson
Import upstream version 4.1p1
550
.Xr ssh-keygen 1 .
23 by Colin Watson
* Identify ssh as a metapackage rather than a transitional package. It's
551
Use of this option may break facilities such as tab-completion that rely
552
on being able to read unhashed host names from
553
.Pa ~/.ssh/known_hosts .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
554
.It Cm HostbasedAuthentication
555
Specifies whether to try rhosts based authentication with public key
556
authentication.
557
The argument must be
558
.Dq yes
559
or
560
.Dq no .
561
The default is
562
.Dq no .
563
This option applies to protocol version 2 only and
564
is similar to
565
.Cm RhostsRSAAuthentication .
566
.It Cm HostKeyAlgorithms
567
Specifies the protocol version 2 host key algorithms
568
that the client wants to use in order of preference.
569
The default for this option is:
570
.Dq ssh-rsa,ssh-dss .
571
.It Cm HostKeyAlias
572
Specifies an alias that should be used instead of the
573
real host name when looking up or saving the host key
574
in the host key database files.
1.13.1 by Colin Watson
Import upstream version 4.6p1
575
This option is useful for tunneling SSH connections
1 by Noah Meyerhans
Import upstream version 3.8.1p1
576
or for multiple servers running on a single host.
577
.It Cm HostName
578
Specifies the real host name to log into.
579
This can be used to specify nicknames or abbreviations for hosts.
1.13.1 by Colin Watson
Import upstream version 4.6p1
580
The default is the name given on the command line.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
581
Numeric IP addresses are also permitted (both on the command line and in
582
.Cm HostName
583
specifications).
1.6.1 by Colin Watson
Import upstream version 4.3p2
584
.It Cm IdentitiesOnly
585
Specifies that
1.13.1 by Colin Watson
Import upstream version 4.6p1
586
.Xr ssh 1
1.6.1 by Colin Watson
Import upstream version 4.3p2
587
should only use the authentication identity files configured in the
588
.Nm
589
files,
1.13.1 by Colin Watson
Import upstream version 4.6p1
590
even if
591
.Xr ssh-agent 1
1.6.1 by Colin Watson
Import upstream version 4.3p2
592
offers more identities.
593
The argument to this keyword must be
594
.Dq yes
595
or
596
.Dq no .
1.13.1 by Colin Watson
Import upstream version 4.6p1
597
This option is intended for situations where ssh-agent
1.6.1 by Colin Watson
Import upstream version 4.3p2
598
offers many different identities.
599
The default is
600
.Dq no .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
601
.It Cm IdentityFile
602
Specifies a file from which the user's RSA or DSA authentication identity
603
is read.
604
The default is
1.1.3 by Colin Watson
Import upstream version 4.2p1
605
.Pa ~/.ssh/identity
1 by Noah Meyerhans
Import upstream version 3.8.1p1
606
for protocol version 1, and
1.1.3 by Colin Watson
Import upstream version 4.2p1
607
.Pa ~/.ssh/id_rsa
1 by Noah Meyerhans
Import upstream version 3.8.1p1
608
and
1.1.3 by Colin Watson
Import upstream version 4.2p1
609
.Pa ~/.ssh/id_dsa
1 by Noah Meyerhans
Import upstream version 3.8.1p1
610
for protocol version 2.
611
Additionally, any identities represented by the authentication agent
612
will be used for authentication.
1.13.1 by Colin Watson
Import upstream version 4.6p1
613
.Pp
1 by Noah Meyerhans
Import upstream version 3.8.1p1
614
The file name may use the tilde
1.13.1 by Colin Watson
Import upstream version 4.6p1
615
syntax to refer to a user's home directory or one of the following
616
escape characters:
617
.Ql %d
618
(local user's home directory),
619
.Ql %u
620
(local user name),
621
.Ql %l
622
(local host name),
623
.Ql %h
624
(remote host name) or
625
.Ql %r
626
(remote user name).
627
.Pp
1 by Noah Meyerhans
Import upstream version 3.8.1p1
628
It is possible to have
629
multiple identity files specified in configuration files; all these
630
identities will be tried in sequence.
1.13.3 by Colin Watson
Import upstream version 5.1p1
631
.It Cm KbdInteractiveAuthentication
632
Specifies whether to use keyboard-interactive authentication.
633
The argument to this keyword must be
634
.Dq yes
635
or
636
.Dq no .
637
The default is
638
.Dq yes .
1.1.2 by Colin Watson
Import upstream version 4.1p1
639
.It Cm KbdInteractiveDevices
640
Specifies the list of methods to use in keyboard-interactive authentication.
641
Multiple method names must be comma-separated.
642
The default is to use the server specified list.
1.13.1 by Colin Watson
Import upstream version 4.6p1
643
The methods available vary depending on what the server supports.
644
For an OpenSSH server,
645
it may be zero or more of:
646
.Dq bsdauth ,
647
.Dq pam ,
648
and
649
.Dq skey .
1.6.1 by Colin Watson
Import upstream version 4.3p2
650
.It Cm LocalCommand
651
Specifies a command to execute on the local machine after successfully
652
connecting to the server.
653
The command string extends to the end of the line, and is executed with
1.13.3 by Colin Watson
Import upstream version 5.1p1
654
the user's shell.
655
The following escape character substitutions will be performed:
656
.Ql %d
657
(local user's home directory),
658
.Ql %h
659
(remote host name),
660
.Ql %l
661
(local host name),
662
.Ql %n
663
(host name as provided on the command line),
664
.Ql %p
665
(remote port),
666
.Ql %r
667
(remote user name) or
668
.Ql %u
669
(local user name).
1.6.1 by Colin Watson
Import upstream version 4.3p2
670
This directive is ignored unless
671
.Cm PermitLocalCommand
672
has been enabled.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
673
.It Cm LocalForward
1.6.1 by Colin Watson
Import upstream version 4.3p2
674
Specifies that a TCP port on the local machine be forwarded over
1 by Noah Meyerhans
Import upstream version 3.8.1p1
675
the secure channel to the specified host and port from the remote machine.
1.1.2 by Colin Watson
Import upstream version 4.1p1
676
The first argument must be
677
.Sm off
678
.Oo Ar bind_address : Oc Ar port
679
.Sm on
680
and the second argument must be
681
.Ar host : Ns Ar hostport .
682
IPv6 addresses can be specified by enclosing addresses in square brackets or
683
by using an alternative syntax:
684
.Oo Ar bind_address Ns / Oc Ns Ar port
685
and
686
.Ar host Ns / Ns Ar hostport .
687
Multiple forwardings may be specified, and additional forwardings can be
688
given on the command line.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
689
Only the superuser can forward privileged ports.
1.1.2 by Colin Watson
Import upstream version 4.1p1
690
By default, the local port is bound in accordance with the
691
.Cm GatewayPorts
692
setting.
693
However, an explicit
694
.Ar bind_address
695
may be used to bind the connection to a specific address.
696
The
697
.Ar bind_address
698
of
699
.Dq localhost
700
indicates that the listening port be bound for local use only, while an
701
empty address or
702
.Sq *
703
indicates that the port should be available from all interfaces.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
704
.It Cm LogLevel
705
Gives the verbosity level that is used when logging messages from
1.13.1 by Colin Watson
Import upstream version 4.6p1
706
.Xr ssh 1 .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
707
The possible values are:
22 by Colin Watson
* Fix ordering of SYSLOG_LEVEL_QUIET and SYSLOG_LEVEL_FATAL.
708
SILENT, QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
709
The default is INFO.
710
DEBUG and DEBUG1 are equivalent.
711
DEBUG2 and DEBUG3 each specify higher levels of verbose output.
712
.It Cm MACs
713
Specifies the MAC (message authentication code) algorithms
714
in order of preference.
715
The MAC algorithm is used in protocol version 2
716
for data integrity protection.
717
Multiple algorithms must be comma-separated.
1.13.1 by Colin Watson
Import upstream version 4.6p1
718
The default is:
1.13.2 by Colin Watson
Import upstream version 4.7p1
719
.Bd -literal -offset indent
720
hmac-md5,hmac-sha1,umac-64@openssh.com,
721
hmac-ripemd160,hmac-sha1-96,hmac-md5-96
722
.Ed
1 by Noah Meyerhans
Import upstream version 3.8.1p1
723
.It Cm NoHostAuthenticationForLocalhost
724
This option can be used if the home directory is shared across machines.
725
In this case localhost will refer to a different machine on each of
726
the machines and the user will get many warnings about changed host keys.
727
However, this option disables host authentication for localhost.
728
The argument to this keyword must be
729
.Dq yes
730
or
731
.Dq no .
732
The default is to check the host key for localhost.
733
.It Cm NumberOfPasswordPrompts
734
Specifies the number of password prompts before giving up.
735
The argument to this keyword must be an integer.
1.13.1 by Colin Watson
Import upstream version 4.6p1
736
The default is 3.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
737
.It Cm PasswordAuthentication
738
Specifies whether to use password authentication.
739
The argument to this keyword must be
740
.Dq yes
741
or
742
.Dq no .
743
The default is
744
.Dq yes .
1.6.1 by Colin Watson
Import upstream version 4.3p2
745
.It Cm PermitLocalCommand
746
Allow local command execution via the
747
.Ic LocalCommand
748
option or using the
749
.Ic !\& Ns Ar command
750
escape sequence in
751
.Xr ssh 1 .
752
The argument must be
753
.Dq yes
754
or
755
.Dq no .
756
The default is
757
.Dq no .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
758
.It Cm Port
759
Specifies the port number to connect on the remote host.
1.13.1 by Colin Watson
Import upstream version 4.6p1
760
The default is 22.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
761
.It Cm PreferredAuthentications
762
Specifies the order in which the client should try protocol 2
763
authentication methods.
1.1.2 by Colin Watson
Import upstream version 4.1p1
764
This allows a client to prefer one method (e.g.\&
1 by Noah Meyerhans
Import upstream version 3.8.1p1
765
.Cm keyboard-interactive )
1.1.2 by Colin Watson
Import upstream version 4.1p1
766
over another method (e.g.\&
1 by Noah Meyerhans
Import upstream version 3.8.1p1
767
.Cm password )
768
The default for this option is:
1.13.1 by Colin Watson
Import upstream version 4.6p1
769
.Do gssapi-with-mic ,
770
hostbased,
771
publickey,
772
keyboard-interactive,
773
password
774
.Dc .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
775
.It Cm Protocol
776
Specifies the protocol versions
1.13.1 by Colin Watson
Import upstream version 4.6p1
777
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
778
should support in order of preference.
779
The possible values are
1.13.1 by Colin Watson
Import upstream version 4.6p1
780
.Sq 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
781
and
1.13.1 by Colin Watson
Import upstream version 4.6p1
782
.Sq 2 .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
783
Multiple versions must be comma-separated.
784
The default is
785
.Dq 2,1 .
1.13.1 by Colin Watson
Import upstream version 4.6p1
786
This means that ssh
1 by Noah Meyerhans
Import upstream version 3.8.1p1
787
tries version 2 and falls back to version 1
788
if version 2 is not available.
789
.It Cm ProxyCommand
790
Specifies the command to use to connect to the server.
791
The command
792
string extends to the end of the line, and is executed with
1.13.3 by Colin Watson
Import upstream version 5.1p1
793
the user's shell.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
794
In the command string,
795
.Ql %h
796
will be substituted by the host name to
797
connect and
798
.Ql %p
799
by the port.
800
The command can be basically anything,
801
and should read from its standard input and write to its standard output.
802
It should eventually connect an
803
.Xr sshd 8
804
server running on some machine, or execute
805
.Ic sshd -i
806
somewhere.
807
Host key management will be done using the
808
HostName of the host being connected (defaulting to the name typed by
809
the user).
810
Setting the command to
811
.Dq none
812
disables this option entirely.
813
Note that
814
.Cm CheckHostIP
815
is not available for connects with a proxy command.
816
.Pp
1.1.3 by Colin Watson
Import upstream version 4.2p1
817
This directive is useful in conjunction with
818
.Xr nc 1
819
and its proxy support.
820
For example, the following directive would connect via an HTTP proxy at
821
192.0.2.0:
822
.Bd -literal -offset 3n
823
ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
824
.Ed
1 by Noah Meyerhans
Import upstream version 3.8.1p1
825
.It Cm PubkeyAuthentication
826
Specifies whether to try public key authentication.
827
The argument to this keyword must be
828
.Dq yes
829
or
830
.Dq no .
831
The default is
832
.Dq yes .
833
This option applies to protocol version 2 only.
1.6.1 by Colin Watson
Import upstream version 4.3p2
834
.It Cm RekeyLimit
835
Specifies the maximum amount of data that may be transmitted before the
836
session key is renegotiated.
837
The argument is the number of bytes, with an optional suffix of
838
.Sq K ,
839
.Sq M ,
840
or
841
.Sq G
842
to indicate Kilobytes, Megabytes, or Gigabytes, respectively.
843
The default is between
1.13.1 by Colin Watson
Import upstream version 4.6p1
844
.Sq 1G
1.6.1 by Colin Watson
Import upstream version 4.3p2
845
and
1.13.1 by Colin Watson
Import upstream version 4.6p1
846
.Sq 4G ,
1.6.1 by Colin Watson
Import upstream version 4.3p2
847
depending on the cipher.
848
This option applies to protocol version 2 only.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
849
.It Cm RemoteForward
1.6.1 by Colin Watson
Import upstream version 4.3p2
850
Specifies that a TCP port on the remote machine be forwarded over
1 by Noah Meyerhans
Import upstream version 3.8.1p1
851
the secure channel to the specified host and port from the local machine.
1.1.2 by Colin Watson
Import upstream version 4.1p1
852
The first argument must be
853
.Sm off
854
.Oo Ar bind_address : Oc Ar port
855
.Sm on
856
and the second argument must be
857
.Ar host : Ns Ar hostport .
858
IPv6 addresses can be specified by enclosing addresses in square brackets
859
or by using an alternative syntax:
860
.Oo Ar bind_address Ns / Oc Ns Ar port
861
and
862
.Ar host Ns / Ns Ar hostport .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
863
Multiple forwardings may be specified, and additional
864
forwardings can be given on the command line.
1.13.4 by Colin Watson
Import upstream version 5.2p1
865
Privileged ports can be forwarded only when
866
logging in as root on the remote machine.
867
.Pp
868
If the
869
.Ar port
870
argument is
871
.Ql 0 ,
872
the listen port will be dynamically allocated on the server and reported
873
to the client at run time.
1.1.2 by Colin Watson
Import upstream version 4.1p1
874
.Pp
875
If the
876
.Ar bind_address
877
is not specified, the default is to only bind to loopback addresses.
878
If the
879
.Ar bind_address
880
is
881
.Ql *
882
or an empty string, then the forwarding is requested to listen on all
883
interfaces.
884
Specifying a remote
885
.Ar bind_address
886
will only succeed if the server's
887
.Cm GatewayPorts
888
option is enabled (see
889
.Xr sshd_config 5 ) .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
890
.It Cm RhostsRSAAuthentication
891
Specifies whether to try rhosts based authentication with RSA host
892
authentication.
893
The argument must be
894
.Dq yes
895
or
896
.Dq no .
897
The default is
898
.Dq no .
899
This option applies to protocol version 1 only and requires
1.13.1 by Colin Watson
Import upstream version 4.6p1
900
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
901
to be setuid root.
902
.It Cm RSAAuthentication
903
Specifies whether to try RSA authentication.
904
The argument to this keyword must be
905
.Dq yes
906
or
907
.Dq no .
908
RSA authentication will only be
909
attempted if the identity file exists, or an authentication agent is
910
running.
911
The default is
912
.Dq yes .
913
Note that this option applies to protocol version 1 only.
1.1.1 by Colin Watson
Import upstream version 3.9p1
914
.It Cm SendEnv
915
Specifies what variables from the local
916
.Xr environ 7
917
should be sent to the server.
1.13.1 by Colin Watson
Import upstream version 4.6p1
918
Note that environment passing is only supported for protocol 2.
919
The server must also support it, and the server must be configured to
1.1.1 by Colin Watson
Import upstream version 3.9p1
920
accept these environment variables.
921
Refer to
922
.Cm AcceptEnv
923
in
924
.Xr sshd_config 5
925
for how to configure the server.
1.13.1 by Colin Watson
Import upstream version 4.6p1
926
Variables are specified by name, which may contain wildcard characters.
1.1.1 by Colin Watson
Import upstream version 3.9p1
927
Multiple environment variables may be separated by whitespace or spread
928
across multiple
929
.Cm SendEnv
930
directives.
931
The default is not to send any environment variables.
1.13.1 by Colin Watson
Import upstream version 4.6p1
932
.Pp
933
See
934
.Sx PATTERNS
935
for more information on patterns.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
936
.It Cm ServerAliveCountMax
1.6.1 by Colin Watson
Import upstream version 4.3p2
937
Sets the number of server alive messages (see below) which may be
1 by Noah Meyerhans
Import upstream version 3.8.1p1
938
sent without
1.13.1 by Colin Watson
Import upstream version 4.6p1
939
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
940
receiving any messages back from the server.
941
If this threshold is reached while server alive messages are being sent,
1.13.1 by Colin Watson
Import upstream version 4.6p1
942
ssh will disconnect from the server, terminating the session.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
943
It is important to note that the use of server alive messages is very
944
different from
945
.Cm TCPKeepAlive
946
(below).
947
The server alive messages are sent through the encrypted channel
948
and therefore will not be spoofable.
949
The TCP keepalive option enabled by
950
.Cm TCPKeepAlive
951
is spoofable.
952
The server alive mechanism is valuable when the client or
953
server depend on knowing when a connection has become inactive.
954
.Pp
955
The default value is 3.
956
If, for example,
957
.Cm ServerAliveInterval
1.13.1 by Colin Watson
Import upstream version 4.6p1
958
(see below) is set to 15 and
1 by Noah Meyerhans
Import upstream version 3.8.1p1
959
.Cm ServerAliveCountMax
1.13.1 by Colin Watson
Import upstream version 4.6p1
960
is left at the default, if the server becomes unresponsive,
961
ssh will disconnect after approximately 45 seconds.
21 by Colin Watson
* New upstream release (closes: #395507, #397961, #420035). Important
962
This option applies to protocol version 2 only; in protocol version
2 by Colin Watson
* Nathaniel McCallum:
963
1 there is no mechanism to request a response from the server to the
964
server alive messages, so disconnection is the responsibility of the TCP
965
stack.
1.6.1 by Colin Watson
Import upstream version 4.3p2
966
.It Cm ServerAliveInterval
967
Sets a timeout interval in seconds after which if no data has been received
968
from the server,
1.13.1 by Colin Watson
Import upstream version 4.6p1
969
.Xr ssh 1
1.6.1 by Colin Watson
Import upstream version 4.3p2
970
will send a message through the encrypted
971
channel to request a response from the server.
972
The default
10 by Colin Watson
* Resynchronise with Debian.
973
is 0, indicating that these messages will not be sent to the server,
974
or 300 if the
975
.Cm BatchMode
976
option is set.
1.6.1 by Colin Watson
Import upstream version 4.3p2
977
This option applies to protocol version 2 only.
10 by Colin Watson
* Resynchronise with Debian.
978
.Cm ProtocolKeepAlives
41 by Colin Watson
* Resynchronise with Debian. Remaining changes:
979
and
980
.Cm SetupTimeOut
981
are Debian-specific compatibility aliases for this option.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
982
.It Cm SmartcardDevice
983
Specifies which smartcard device to use.
984
The argument to this keyword is the device
1.13.1 by Colin Watson
Import upstream version 4.6p1
985
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
986
should use to communicate with a smartcard used for storing the user's
987
private RSA key.
988
By default, no device is specified and smartcard support is not activated.
989
.It Cm StrictHostKeyChecking
990
If this flag is set to
991
.Dq yes ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
992
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
993
will never automatically add host keys to the
1.1.3 by Colin Watson
Import upstream version 4.2p1
994
.Pa ~/.ssh/known_hosts
1 by Noah Meyerhans
Import upstream version 3.8.1p1
995
file, and refuses to connect to hosts whose host key has changed.
996
This provides maximum protection against trojan horse attacks,
1.13.1 by Colin Watson
Import upstream version 4.6p1
997
though it can be annoying when the
1 by Noah Meyerhans
Import upstream version 3.8.1p1
998
.Pa /etc/ssh/ssh_known_hosts
1.13.1 by Colin Watson
Import upstream version 4.6p1
999
file is poorly maintained or when connections to new hosts are
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1000
frequently made.
1001
This option forces the user to manually
1002
add all new hosts.
1003
If this flag is set to
1004
.Dq no ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
1005
ssh will automatically add new host keys to the
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1006
user known hosts files.
1007
If this flag is set to
1008
.Dq ask ,
1009
new host keys
1010
will be added to the user known host files only after the user
1011
has confirmed that is what they really want to do, and
1.13.1 by Colin Watson
Import upstream version 4.6p1
1012
ssh will refuse to connect to hosts whose host key has changed.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1013
The host keys of
1014
known hosts will be verified automatically in all cases.
1015
The argument must be
1016
.Dq yes ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
1017
.Dq no ,
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1018
or
1019
.Dq ask .
1020
The default is
1021
.Dq ask .
1022
.It Cm TCPKeepAlive
1023
Specifies whether the system should send TCP keepalive messages to the
1024
other side.
1025
If they are sent, death of the connection or crash of one
1026
of the machines will be properly noticed.
2 by Colin Watson
* Nathaniel McCallum:
1027
This option only uses TCP keepalives (as opposed to using ssh level
1028
keepalives), so takes a long time to notice when the connection dies.
1029
As such, you probably want
1030
the
1031
.Cm ServerAliveInterval
1032
option as well.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1033
However, this means that
1034
connections will die if the route is down temporarily, and some people
1035
find it annoying.
1036
.Pp
1037
The default is
1038
.Dq yes
1039
(to send TCP keepalive messages), and the client will notice
1040
if the network goes down or the remote host dies.
1041
This is important in scripts, and many users want it too.
1042
.Pp
1043
To disable TCP keepalive messages, the value should be set to
1044
.Dq no .
1.6.1 by Colin Watson
Import upstream version 4.3p2
1045
.It Cm Tunnel
1.13.1 by Colin Watson
Import upstream version 4.6p1
1046
Request
1.6.1 by Colin Watson
Import upstream version 4.3p2
1047
.Xr tun 4
1048
device forwarding between the client and the server.
1049
The argument must be
1050
.Dq yes ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
1051
.Dq point-to-point
1052
(layer 3),
1.6.1 by Colin Watson
Import upstream version 4.3p2
1053
.Dq ethernet
1.13.1 by Colin Watson
Import upstream version 4.6p1
1054
(layer 2),
1.6.1 by Colin Watson
Import upstream version 4.3p2
1055
or
1056
.Dq no .
1.13.1 by Colin Watson
Import upstream version 4.6p1
1057
Specifying
1058
.Dq yes
1059
requests the default tunnel mode, which is
1060
.Dq point-to-point .
1.6.1 by Colin Watson
Import upstream version 4.3p2
1061
The default is
1062
.Dq no .
1063
.It Cm TunnelDevice
1.13.1 by Colin Watson
Import upstream version 4.6p1
1064
Specifies the
1.6.1 by Colin Watson
Import upstream version 4.3p2
1065
.Xr tun 4
1.13.1 by Colin Watson
Import upstream version 4.6p1
1066
devices to open on the client
1067
.Pq Ar local_tun
1068
and the server
1069
.Pq Ar remote_tun .
1070
.Pp
1071
The argument must be
1072
.Sm off
1073
.Ar local_tun Op : Ar remote_tun .
1074
.Sm on
1075
The devices may be specified by numerical ID or the keyword
1076
.Dq any ,
1077
which uses the next available tunnel device.
1078
If
1079
.Ar remote_tun
1080
is not specified, it defaults to
1081
.Dq any .
1082
The default is
1083
.Dq any:any .
41 by Colin Watson
* Resynchronise with Debian. Remaining changes:
1084
.It Cm UseBlacklistedKeys
1085
Specifies whether
1086
.Xr ssh 1
1087
should use keys recorded in its blacklist of known-compromised keys (see
1088
.Xr ssh-vulnkey 1 )
1089
for authentication.
1090
If
1091
.Dq yes ,
1092
then attempts to use compromised keys for authentication will be logged but
1093
accepted.
1094
It is strongly recommended that this be used only to install new authorized
1095
keys on the remote system, and even then only with the utmost care.
1096
If
1097
.Dq no ,
1098
then attempts to use compromised keys for authentication will be prevented.
1099
The default is
1100
.Dq no .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1101
.It Cm UsePrivilegedPort
1102
Specifies whether to use a privileged port for outgoing connections.
1103
The argument must be
1104
.Dq yes
1105
or
1106
.Dq no .
1107
The default is
1108
.Dq no .
1109
If set to
1.13.1 by Colin Watson
Import upstream version 4.6p1
1110
.Dq yes ,
1111
.Xr ssh 1
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1112
must be setuid root.
1113
Note that this option must be set to
1114
.Dq yes
1115
for
1116
.Cm RhostsRSAAuthentication
1117
with older servers.
1118
.It Cm User
1119
Specifies the user to log in as.
1120
This can be useful when a different user name is used on different machines.
1121
This saves the trouble of
1122
having to remember to give the user name on the command line.
1123
.It Cm UserKnownHostsFile
1124
Specifies a file to use for the user
1125
host key database instead of
1.1.3 by Colin Watson
Import upstream version 4.2p1
1126
.Pa ~/.ssh/known_hosts .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1127
.It Cm VerifyHostKeyDNS
1128
Specifies whether to verify the remote key using DNS and SSHFP resource
1129
records.
1130
If this option is set to
1131
.Dq yes ,
1132
the client will implicitly trust keys that match a secure fingerprint
1133
from DNS.
1134
Insecure fingerprints will be handled as if this option was set to
1135
.Dq ask .
1136
If this option is set to
1137
.Dq ask ,
1138
information on fingerprint match will be displayed, but the user will still
1139
need to confirm new host keys according to the
1140
.Cm StrictHostKeyChecking
1141
option.
1142
The argument must be
1143
.Dq yes ,
1.13.1 by Colin Watson
Import upstream version 4.6p1
1144
.Dq no ,
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1145
or
1146
.Dq ask .
1147
The default is
1148
.Dq no .
1149
Note that this option applies to protocol version 2 only.
1.13.1 by Colin Watson
Import upstream version 4.6p1
1150
.Pp
1151
See also
1152
.Sx VERIFYING HOST KEYS
1153
in
1154
.Xr ssh 1 .
1.13.3 by Colin Watson
Import upstream version 5.1p1
1155
.It Cm VisualHostKey
1156
If this flag is set to
1157
.Dq yes ,
1158
an ASCII art representation of the remote host key fingerprint is
1.13.4 by Colin Watson
Import upstream version 5.2p1
1159
printed in addition to the hex fingerprint string at login and
1160
for unknown host keys.
1.13.3 by Colin Watson
Import upstream version 5.1p1
1161
If this flag is set to
1162
.Dq no ,
1.13.4 by Colin Watson
Import upstream version 5.2p1
1163
no fingerprint strings are printed at login and
1164
only the hex fingerprint string will be printed for unknown host keys.
1.13.3 by Colin Watson
Import upstream version 5.1p1
1165
The default is
1166
.Dq no .
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1167
.It Cm XAuthLocation
1168
Specifies the full pathname of the
1169
.Xr xauth 1
1170
program.
1171
The default is
1172
.Pa /usr/X11R6/bin/xauth .
1173
.El
1.13.1 by Colin Watson
Import upstream version 4.6p1
1174
.Sh PATTERNS
1175
A
1176
.Em pattern
1177
consists of zero or more non-whitespace characters,
1178
.Sq *
1179
(a wildcard that matches zero or more characters),
1180
or
1181
.Sq ?\&
1182
(a wildcard that matches exactly one character).
1183
For example, to specify a set of declarations for any host in the
1184
.Dq .co.uk
1185
set of domains,
1186
the following pattern could be used:
1187
.Pp
1188
.Dl Host *.co.uk
1189
.Pp
1190
The following pattern
1191
would match any host in the 192.168.0.[0-9] network range:
1192
.Pp
1193
.Dl Host 192.168.0.?
1194
.Pp
1195
A
1196
.Em pattern-list
1197
is a comma-separated list of patterns.
1198
Patterns within pattern-lists may be negated
1199
by preceding them with an exclamation mark
1200
.Pq Sq !\& .
1201
For example,
1202
to allow a key to be used from anywhere within an organisation
1203
except from the
1204
.Dq dialup
1205
pool,
1206
the following entry (in authorized_keys) could be used:
1207
.Pp
1208
.Dl from=\&"!*.dialup.example.com,*.example.com\&"
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1209
.Sh FILES
1210
.Bl -tag -width Ds
1.1.3 by Colin Watson
Import upstream version 4.2p1
1211
.It Pa ~/.ssh/config
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1212
This is the per-user configuration file.
1213
The format of this file is described above.
1.13.1 by Colin Watson
Import upstream version 4.6p1
1214
This file is used by the SSH client.
1.1.1 by Colin Watson
Import upstream version 3.9p1
1215
Because of the potential for abuse, this file must have strict permissions:
1216
read/write for the user, and not accessible by others.
4 by Colin Watson
* Add /usr/games to the default $PATH for non-privileged users.
1217
It may be group-writable provided that the group in question contains only
1218
the user.
1 by Noah Meyerhans
Import upstream version 3.8.1p1
1219
.It Pa /etc/ssh/ssh_config
1220
Systemwide configuration file.
1221
This file provides defaults for those
1222
values that are not specified in the user's configuration file, and
1223
for those users who do not have a configuration file.
1224
This file must be world-readable.
1225
.El
1226
.Sh SEE ALSO
1227
.Xr ssh 1
1228
.Sh AUTHORS
1229
OpenSSH is a derivative of the original and free
1230
ssh 1.2.12 release by Tatu Ylonen.
1231
Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1232
Theo de Raadt and Dug Song
1233
removed many bugs, re-added newer features and
1234
created OpenSSH.
1235
Markus Friedl contributed the support for SSH
1236
protocol versions 1.5 and 2.0.