]>
Commit | Line | Data |
---|---|---|
ff2d7a98 | 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 | .\" | |
416fd2a8 | 37 | .\" $OpenBSD: ssh_config.5,v 1.28 2003/12/16 15:49:51 markus Exp $ |
ff2d7a98 | 38 | .Dd September 25, 1999 |
39 | .Dt SSH_CONFIG 5 | |
40 | .Os | |
41 | .Sh NAME | |
42 | .Nm ssh_config | |
43 | .Nd OpenSSH SSH client configuration files | |
44 | .Sh SYNOPSIS | |
45 | .Bl -tag -width Ds -compact | |
46 | .It Pa $HOME/.ssh/config | |
47 | .It Pa /etc/ssh/ssh_config | |
48 | .El | |
49 | .Sh DESCRIPTION | |
50 | .Nm ssh | |
51 | obtains configuration data from the following sources in | |
52 | the following order: | |
e54b3d7c | 53 | .Bl -enum -offset indent -compact |
54 | .It | |
55 | command-line options | |
56 | .It | |
ff2d7a98 | 57 | user's configuration file |
e54b3d7c | 58 | .Pq Pa $HOME/.ssh/config |
59 | .It | |
60 | GSSAPI configuration file | |
61 | .Pq Pa $HOME/.ssh/config.gssapi | |
62 | .It | |
63 | Kerberos configuration file | |
64 | .Pq Pa $HOME/.ssh/config.krb | |
65 | .It | |
e54b3d7c | 66 | system-wide configuration file |
67 | .Pq Pa /etc/ssh/ssh_config | |
ff2d7a98 | 68 | .El |
69 | .Pp | |
70 | For each parameter, the first obtained value | |
71 | will be used. | |
72 | The configuration files contain sections bracketed by | |
73 | .Dq Host | |
74 | specifications, and that section is only applied for hosts that | |
75 | match one of the patterns given in the specification. | |
76 | The matched host name is the one given on the command line. | |
77 | .Pp | |
78 | Since the first obtained value for each parameter is used, more | |
79 | host-specific declarations should be given near the beginning of the | |
80 | file, and general defaults at the end. | |
81 | .Pp | |
82 | The configuration file has the following format: | |
83 | .Pp | |
84 | Empty lines and lines starting with | |
85 | .Ql # | |
86 | are comments. | |
87 | .Pp | |
88 | Otherwise a line is of the format | |
89 | .Dq keyword arguments . | |
90 | Configuration options may be separated by whitespace or | |
91 | optional whitespace and exactly one | |
92 | .Ql = ; | |
93 | the latter format is useful to avoid the need to quote whitespace | |
94 | when specifying configuration options using the | |
95 | .Nm ssh , | |
96 | .Nm scp | |
97 | and | |
98 | .Nm sftp | |
99 | .Fl o | |
100 | option. | |
101 | .Pp | |
102 | The possible | |
103 | keywords and their meanings are as follows (note that | |
104 | keywords are case-insensitive and arguments are case-sensitive): | |
105 | .Bl -tag -width Ds | |
106 | .It Cm Host | |
107 | Restricts the following declarations (up to the next | |
108 | .Cm Host | |
109 | keyword) to be only for those hosts that match one of the patterns | |
110 | given after the keyword. | |
111 | .Ql \&* | |
112 | and | |
70791e56 | 113 | .Ql \&? |
ff2d7a98 | 114 | can be used as wildcards in the |
115 | patterns. | |
116 | A single | |
117 | .Ql \&* | |
118 | as a pattern can be used to provide global | |
119 | defaults for all hosts. | |
120 | The host is the | |
121 | .Ar hostname | |
122 | argument given on the command line (i.e., the name is not converted to | |
123 | a canonicalized host name before matching). | |
70791e56 | 124 | .It Cm AddressFamily |
125 | Specifies which address family to use when connecting. | |
126 | Valid arguments are | |
127 | .Dq any , | |
128 | .Dq inet | |
129 | (Use IPv4 only) or | |
130 | .Dq inet6 | |
131 | (Use IPv6 only.) | |
ff2d7a98 | 132 | .It Cm BatchMode |
133 | If set to | |
134 | .Dq yes , | |
135 | passphrase/password querying will be disabled. | |
136 | This option is useful in scripts and other batch jobs where no user | |
137 | is present to supply the password. | |
138 | The argument must be | |
139 | .Dq yes | |
140 | or | |
141 | .Dq no . | |
142 | The default is | |
143 | .Dq no . | |
144 | .It Cm BindAddress | |
145 | Specify the interface to transmit from on machines with multiple | |
146 | interfaces or aliased addresses. | |
147 | Note that this option does not work if | |
148 | .Cm UsePrivilegedPort | |
149 | is set to | |
150 | .Dq yes . | |
151 | .It Cm ChallengeResponseAuthentication | |
152 | Specifies whether to use challenge response authentication. | |
153 | The argument to this keyword must be | |
154 | .Dq yes | |
155 | or | |
156 | .Dq no . | |
157 | The default is | |
158 | .Dq yes . | |
159 | .It Cm CheckHostIP | |
160 | If this flag is set to | |
161 | .Dq yes , | |
162 | ssh will additionally check the host IP address in the | |
163 | .Pa known_hosts | |
164 | file. | |
165 | This allows ssh to detect if a host key changed due to DNS spoofing. | |
166 | If the option is set to | |
167 | .Dq no , | |
168 | the check will not be executed. | |
169 | The default is | |
170 | .Dq yes . | |
171 | .It Cm Cipher | |
172 | Specifies the cipher to use for encrypting the session | |
173 | in protocol version 1. | |
174 | Currently, | |
175 | .Dq blowfish , | |
176 | .Dq 3des , | |
177 | and | |
178 | .Dq des | |
179 | are supported. | |
180 | .Ar des | |
181 | is only supported in the | |
182 | .Nm ssh | |
183 | client for interoperability with legacy protocol 1 implementations | |
184 | that do not support the | |
185 | .Ar 3des | |
1c14df9e | 186 | cipher. |
187 | Its use is strongly discouraged due to cryptographic weaknesses. | |
ff2d7a98 | 188 | The default is |
189 | .Dq 3des . | |
190 | .It Cm Ciphers | |
191 | Specifies the ciphers allowed for protocol version 2 | |
192 | in order of preference. | |
193 | Multiple ciphers must be comma-separated. | |
194 | The default is | |
ff2d7a98 | 195 | .Bd -literal |
196 | ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour, | |
197 | aes192-cbc,aes256-cbc'' | |
198 | .Ed | |
199 | .It Cm ClearAllForwardings | |
200 | Specifies that all local, remote and dynamic port forwardings | |
201 | specified in the configuration files or on the command line be | |
1c14df9e | 202 | cleared. |
203 | This option is primarily useful when used from the | |
ff2d7a98 | 204 | .Nm ssh |
205 | command line to clear port forwardings set in | |
206 | configuration files, and is automatically set by | |
207 | .Xr scp 1 | |
208 | and | |
209 | .Xr sftp 1 . | |
210 | The argument must be | |
211 | .Dq yes | |
212 | or | |
213 | .Dq no . | |
214 | The default is | |
215 | .Dq no . | |
216 | .It Cm Compression | |
217 | Specifies whether to use compression. | |
218 | The argument must be | |
219 | .Dq yes | |
220 | or | |
221 | .Dq no . | |
222 | The default is | |
223 | .Dq no . | |
224 | .It Cm CompressionLevel | |
225 | Specifies the compression level to use if compression is enabled. | |
226 | The argument must be an integer from 1 (fast) to 9 (slow, best). | |
227 | The default level is 6, which is good for most applications. | |
228 | The meaning of the values is the same as in | |
229 | .Xr gzip 1 . | |
230 | Note that this option applies to protocol version 1 only. | |
231 | .It Cm ConnectionAttempts | |
232 | Specifies the number of tries (one per second) to make before exiting. | |
233 | The argument must be an integer. | |
234 | This may be useful in scripts if the connection sometimes fails. | |
235 | The default is 1. | |
70791e56 | 236 | .It Cm ConnectTimeout |
237 | Specifies the timeout (in seconds) used when connecting to the ssh | |
238 | server, instead of using the default system TCP timeout. | |
239 | This value is used only when the target is down or really unreachable, | |
240 | not when it refuses the connection. | |
ff2d7a98 | 241 | .It Cm DynamicForward |
242 | Specifies that a TCP/IP port on the local machine be forwarded | |
243 | over the secure channel, and the application | |
244 | protocol is then used to determine where to connect to from the | |
1c14df9e | 245 | remote machine. |
246 | The argument must be a port number. | |
70791e56 | 247 | Currently the SOCKS4 and SOCKS5 protocols are supported, and |
ff2d7a98 | 248 | .Nm ssh |
70791e56 | 249 | will act as a SOCKS server. |
ff2d7a98 | 250 | Multiple forwardings may be specified, and |
1c14df9e | 251 | additional forwardings can be given on the command line. |
252 | Only the superuser can forward privileged ports. | |
70791e56 | 253 | .It Cm EnableSSHKeysign |
254 | Setting this option to | |
255 | .Dq yes | |
256 | in the global client configuration file | |
257 | .Pa /etc/ssh/ssh_config | |
258 | enables the use of the helper program | |
259 | .Xr ssh-keysign 8 | |
260 | during | |
261 | .Cm HostbasedAuthentication . | |
262 | The argument must be | |
263 | .Dq yes | |
264 | or | |
265 | .Dq no . | |
266 | The default is | |
267 | .Dq no . | |
416fd2a8 | 268 | This option should be placed in the non-hostspecific section. |
70791e56 | 269 | See |
270 | .Xr ssh-keysign 8 | |
271 | for more information. | |
ff2d7a98 | 272 | .It Cm EscapeChar |
273 | Sets the escape character (default: | |
274 | .Ql ~ ) . | |
275 | The escape character can also | |
276 | be set on the command line. | |
277 | The argument should be a single character, | |
278 | .Ql ^ | |
279 | followed by a letter, or | |
280 | .Dq none | |
281 | to disable the escape | |
282 | character entirely (making the connection transparent for binary | |
283 | data). | |
284 | .It Cm ForwardAgent | |
285 | Specifies whether the connection to the authentication agent (if any) | |
286 | will be forwarded to the remote machine. | |
287 | The argument must be | |
288 | .Dq yes | |
289 | or | |
290 | .Dq no . | |
291 | The default is | |
292 | .Dq no . | |
e54b3d7c | 293 | .Pp |
1c14df9e | 294 | Agent forwarding should be enabled with caution. |
295 | Users with the ability to bypass file permissions on the remote host | |
296 | (for the agent's Unix-domain socket) | |
297 | can access the local agent through the forwarded connection. | |
298 | An attacker cannot obtain key material from the agent, | |
e54b3d7c | 299 | however they can perform operations on the keys that enable them to |
300 | authenticate using the identities loaded into the agent. | |
ff2d7a98 | 301 | .It Cm ForwardX11 |
302 | Specifies whether X11 connections will be automatically redirected | |
303 | over the secure channel and | |
304 | .Ev DISPLAY | |
305 | set. | |
306 | The argument must be | |
307 | .Dq yes | |
308 | or | |
309 | .Dq no . | |
310 | The default is | |
311 | .Dq no . | |
e54b3d7c | 312 | .Pp |
1c14df9e | 313 | X11 forwarding should be enabled with caution. |
314 | Users with the ability to bypass file permissions on the remote host | |
416fd2a8 | 315 | (for the user's X11 authorization database) |
1c14df9e | 316 | can access the local X11 display through the forwarded connection. |
416fd2a8 | 317 | An attacker may then be able to perform activities such as keystroke monitoring |
318 | if the | |
319 | .Cm ForwardX11Trusted | |
320 | option is also enabled. | |
321 | .It Cm ForwardX11Trusted | |
322 | If the this option is set to | |
323 | .Dq yes | |
324 | then remote X11 clients will have full access to the original X11 display. | |
325 | If this option is set to | |
326 | .Dq no | |
327 | then remote X11 clients will be considered untrusted and prevented | |
328 | from stealing or tampering with data belonging to trusted X11 | |
329 | clients. | |
330 | .Pp | |
331 | The default is | |
332 | .Dq no . | |
333 | .Pp | |
334 | See the X11 SECURITY extension specification for full details on | |
335 | the restrictions imposed on untrusted clients. | |
ff2d7a98 | 336 | .It Cm GatewayPorts |
337 | Specifies whether remote hosts are allowed to connect to local | |
338 | forwarded ports. | |
339 | By default, | |
340 | .Nm ssh | |
1c14df9e | 341 | binds local port forwardings to the loopback address. |
342 | This prevents other remote hosts from connecting to forwarded ports. | |
ff2d7a98 | 343 | .Cm GatewayPorts |
344 | can be used to specify that | |
345 | .Nm ssh | |
346 | should bind local port forwardings to the wildcard address, | |
347 | thus allowing remote hosts to connect to forwarded ports. | |
348 | The argument must be | |
349 | .Dq yes | |
350 | or | |
351 | .Dq no . | |
352 | The default is | |
353 | .Dq no . | |
354 | .It Cm GlobalKnownHostsFile | |
355 | Specifies a file to use for the global | |
356 | host key database instead of | |
357 | .Pa /etc/ssh/ssh_known_hosts . | |
70791e56 | 358 | .It Cm GSSAPIAuthentication |
416fd2a8 | 359 | Specifies whether user authentication based on GSSAPI is allowed. |
ff2d7a98 | 360 | The default is |
361 | .Dq yes . | |
70791e56 | 362 | Note that this option applies to protocol version 2 only. |
363 | .It Cm GSSAPIKeyExchange | |
98f19977 | 364 | Specifies whether key exchange based on GSSAPI may be used. When using |
365 | GSSAPI key exchange the server need not have a host key. | |
366 | The default is | |
367 | .Dq yes . | |
70791e56 | 368 | Note that this option applies to protocol version 2 only. |
369 | .It Cm GSSAPIDelegateCredentials | |
370 | Forward (delegate) credentials to the server. | |
ff2d7a98 | 371 | The default is |
372 | .Dq yes . | |
70791e56 | 373 | Note that this option applies to protocol version 2 only. |
ff2d7a98 | 374 | .It Cm HostbasedAuthentication |
375 | Specifies whether to try rhosts based authentication with public key | |
376 | authentication. | |
377 | The argument must be | |
378 | .Dq yes | |
379 | or | |
380 | .Dq no . | |
381 | The default is | |
382 | .Dq no . | |
383 | This option applies to protocol version 2 only and | |
384 | is similar to | |
385 | .Cm RhostsRSAAuthentication . | |
386 | .It Cm HostKeyAlgorithms | |
387 | Specifies the protocol version 2 host key algorithms | |
388 | that the client wants to use in order of preference. | |
389 | The default for this option is: | |
390 | .Dq ssh-rsa,ssh-dss . | |
391 | .It Cm HostKeyAlias | |
392 | Specifies an alias that should be used instead of the | |
393 | real host name when looking up or saving the host key | |
394 | in the host key database files. | |
395 | This option is useful for tunneling ssh connections | |
396 | or for multiple servers running on a single host. | |
397 | .It Cm HostName | |
398 | Specifies the real host name to log into. | |
399 | This can be used to specify nicknames or abbreviations for hosts. | |
400 | Default is the name given on the command line. | |
401 | Numeric IP addresses are also permitted (both on the command line and in | |
402 | .Cm HostName | |
403 | specifications). | |
404 | .It Cm IdentityFile | |
405 | Specifies a file from which the user's RSA or DSA authentication identity | |
70791e56 | 406 | is read. |
407 | The default is | |
ff2d7a98 | 408 | .Pa $HOME/.ssh/identity |
409 | for protocol version 1, and | |
410 | .Pa $HOME/.ssh/id_rsa | |
411 | and | |
412 | .Pa $HOME/.ssh/id_dsa | |
413 | for protocol version 2. | |
414 | Additionally, any identities represented by the authentication agent | |
415 | will be used for authentication. | |
416 | The file name may use the tilde | |
417 | syntax to refer to a user's home directory. | |
418 | It is possible to have | |
419 | multiple identity files specified in configuration files; all these | |
420 | identities will be tried in sequence. | |
ff2d7a98 | 421 | .It Cm LocalForward |
422 | Specifies that a TCP/IP port on the local machine be forwarded over | |
423 | the secure channel to the specified host and port from the remote machine. | |
424 | The first argument must be a port number, and the second must be | |
425 | .Ar host:port . | |
426 | IPv6 addresses can be specified with an alternative syntax: | |
427 | .Ar host/port . | |
428 | Multiple forwardings may be specified, and additional | |
429 | forwardings can be given on the command line. | |
430 | Only the superuser can forward privileged ports. | |
431 | .It Cm LogLevel | |
432 | Gives the verbosity level that is used when logging messages from | |
433 | .Nm ssh . | |
434 | The possible values are: | |
435 | QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. | |
1c14df9e | 436 | The default is INFO. |
437 | DEBUG and DEBUG1 are equivalent. | |
438 | DEBUG2 and DEBUG3 each specify higher levels of verbose output. | |
ff2d7a98 | 439 | .It Cm MACs |
440 | Specifies the MAC (message authentication code) algorithms | |
441 | in order of preference. | |
442 | The MAC algorithm is used in protocol version 2 | |
443 | for data integrity protection. | |
444 | Multiple algorithms must be comma-separated. | |
445 | The default is | |
446 | .Dq hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 . | |
447 | .It Cm NoHostAuthenticationForLocalhost | |
448 | This option can be used if the home directory is shared across machines. | |
449 | In this case localhost will refer to a different machine on each of | |
450 | the machines and the user will get many warnings about changed host keys. | |
451 | However, this option disables host authentication for localhost. | |
452 | The argument to this keyword must be | |
453 | .Dq yes | |
454 | or | |
455 | .Dq no . | |
456 | The default is to check the host key for localhost. | |
457 | .It Cm NumberOfPasswordPrompts | |
458 | Specifies the number of password prompts before giving up. | |
459 | The argument to this keyword must be an integer. | |
460 | Default is 3. | |
461 | .It Cm PasswordAuthentication | |
462 | Specifies whether to use password authentication. | |
463 | The argument to this keyword must be | |
464 | .Dq yes | |
465 | or | |
466 | .Dq no . | |
467 | The default is | |
468 | .Dq yes . | |
469 | .It Cm Port | |
470 | Specifies the port number to connect on the remote host. | |
471 | Default is 22. | |
472 | .It Cm PreferredAuthentications | |
473 | Specifies the order in which the client should try protocol 2 | |
70791e56 | 474 | authentication methods. |
475 | This allows a client to prefer one method (e.g. | |
ff2d7a98 | 476 | .Cm keyboard-interactive ) |
477 | over another method (e.g. | |
478 | .Cm password ) | |
479 | The default for this option is: | |
416fd2a8 | 480 | .Dq hostbased,external-keyx,gssapi-with-mic,gssapi,publickey,keyboard-interactive,password . |
ff2d7a98 | 481 | .It Cm Protocol |
482 | Specifies the protocol versions | |
483 | .Nm ssh | |
484 | should support in order of preference. | |
485 | The possible values are | |
486 | .Dq 1 | |
487 | and | |
488 | .Dq 2 . | |
489 | Multiple versions must be comma-separated. | |
490 | The default is | |
491 | .Dq 2,1 . | |
492 | This means that | |
493 | .Nm ssh | |
494 | tries version 2 and falls back to version 1 | |
495 | if version 2 is not available. | |
496 | .It Cm ProxyCommand | |
497 | Specifies the command to use to connect to the server. | |
498 | The command | |
499 | string extends to the end of the line, and is executed with | |
500 | .Pa /bin/sh . | |
501 | In the command string, | |
502 | .Ql %h | |
503 | will be substituted by the host name to | |
504 | connect and | |
505 | .Ql %p | |
506 | by the port. | |
507 | The command can be basically anything, | |
508 | and should read from its standard input and write to its standard output. | |
509 | It should eventually connect an | |
510 | .Xr sshd 8 | |
511 | server running on some machine, or execute | |
512 | .Ic sshd -i | |
513 | somewhere. | |
514 | Host key management will be done using the | |
515 | HostName of the host being connected (defaulting to the name typed by | |
516 | the user). | |
1c14df9e | 517 | Setting the command to |
518 | .Dq none | |
519 | disables this option entirely. | |
ff2d7a98 | 520 | Note that |
521 | .Cm CheckHostIP | |
522 | is not available for connects with a proxy command. | |
523 | .Pp | |
524 | .It Cm PubkeyAuthentication | |
525 | Specifies whether to try public key authentication. | |
526 | The argument to this keyword must be | |
527 | .Dq yes | |
528 | or | |
529 | .Dq no . | |
530 | The default is | |
531 | .Dq yes . | |
532 | This option applies to protocol version 2 only. | |
533 | .It Cm RemoteForward | |
534 | Specifies that a TCP/IP port on the remote machine be forwarded over | |
535 | the secure channel to the specified host and port from the local machine. | |
536 | The first argument must be a port number, and the second must be | |
537 | .Ar host:port . | |
538 | IPv6 addresses can be specified with an alternative syntax: | |
539 | .Ar host/port . | |
540 | Multiple forwardings may be specified, and additional | |
541 | forwardings can be given on the command line. | |
542 | Only the superuser can forward privileged ports. | |
ff2d7a98 | 543 | .It Cm RhostsRSAAuthentication |
544 | Specifies whether to try rhosts based authentication with RSA host | |
545 | authentication. | |
546 | The argument must be | |
547 | .Dq yes | |
548 | or | |
549 | .Dq no . | |
550 | The default is | |
551 | .Dq no . | |
552 | This option applies to protocol version 1 only and requires | |
553 | .Nm ssh | |
554 | to be setuid root. | |
555 | .It Cm RSAAuthentication | |
556 | Specifies whether to try RSA authentication. | |
557 | The argument to this keyword must be | |
558 | .Dq yes | |
559 | or | |
560 | .Dq no . | |
561 | RSA authentication will only be | |
562 | attempted if the identity file exists, or an authentication agent is | |
563 | running. | |
564 | The default is | |
565 | .Dq yes . | |
566 | Note that this option applies to protocol version 1 only. | |
416fd2a8 | 567 | .It Cm ServerAliveInterval |
568 | Sets a timeout interval in seconds after which if no data has been received | |
569 | from the server, | |
570 | .Nm ssh | |
571 | will send a message through the encrypted | |
572 | channel to request a response from the server. | |
573 | The default | |
574 | is 0, indicating that these messages will not be sent to the server. | |
575 | This option applies to protocol version 2 only. | |
576 | .It Cm ServerAliveCountMax | |
577 | Sets the number of server alive messages (see above) which may be | |
578 | sent without | |
579 | .Nm ssh | |
580 | receiving any messages back from the server. | |
581 | If this threshold is reached while server alive messages are being sent, | |
582 | .Nm ssh | |
583 | will disconnect from the server, terminating the session. | |
584 | It is important to note that the use of server alive messages is very | |
585 | different from | |
586 | .Cm TCPKeepAlive | |
587 | (below). | |
588 | The server alive messages are sent through the encrypted channel | |
589 | and therefore will not be spoofable. | |
590 | The TCP keepalive option enabled by | |
591 | .Cm TCPKeepAlive | |
592 | is spoofable. | |
593 | The server alive mechanism is valuable when the client or | |
594 | server depend on knowing when a connection has become inactive. | |
595 | .Pp | |
596 | The default value is 3. | |
597 | If, for example, | |
598 | .Cm ServerAliveInterval | |
599 | (above) is set to 15, and | |
600 | .Cm ServerAliveCountMax | |
601 | is left at the default, if the server becomes unresponsive ssh | |
602 | will disconnect after approximately 45 seconds. | |
ff2d7a98 | 603 | .It Cm SmartcardDevice |
70791e56 | 604 | Specifies which smartcard device to use. |
605 | The argument to this keyword is the device | |
ff2d7a98 | 606 | .Nm ssh |
607 | should use to communicate with a smartcard used for storing the user's | |
70791e56 | 608 | private RSA key. |
609 | By default, no device is specified and smartcard support is not activated. | |
ff2d7a98 | 610 | .It Cm StrictHostKeyChecking |
611 | If this flag is set to | |
612 | .Dq yes , | |
613 | .Nm ssh | |
614 | will never automatically add host keys to the | |
615 | .Pa $HOME/.ssh/known_hosts | |
616 | file, and refuses to connect to hosts whose host key has changed. | |
617 | This provides maximum protection against trojan horse attacks, | |
618 | however, can be annoying when the | |
619 | .Pa /etc/ssh/ssh_known_hosts | |
620 | file is poorly maintained, or connections to new hosts are | |
621 | frequently made. | |
622 | This option forces the user to manually | |
623 | add all new hosts. | |
624 | If this flag is set to | |
625 | .Dq no , | |
626 | .Nm ssh | |
627 | will automatically add new host keys to the | |
628 | user known hosts files. | |
629 | If this flag is set to | |
630 | .Dq ask , | |
631 | new host keys | |
632 | will be added to the user known host files only after the user | |
633 | has confirmed that is what they really want to do, and | |
634 | .Nm ssh | |
635 | will refuse to connect to hosts whose host key has changed. | |
636 | The host keys of | |
637 | known hosts will be verified automatically in all cases. | |
638 | The argument must be | |
639 | .Dq yes , | |
640 | .Dq no | |
641 | or | |
642 | .Dq ask . | |
643 | The default is | |
644 | .Dq ask . | |
416fd2a8 | 645 | .It Cm TCPKeepAlive |
646 | Specifies whether the system should send TCP keepalive messages to the | |
647 | other side. | |
648 | If they are sent, death of the connection or crash of one | |
649 | of the machines will be properly noticed. | |
650 | However, this means that | |
651 | connections will die if the route is down temporarily, and some people | |
652 | find it annoying. | |
653 | .Pp | |
654 | The default is | |
655 | .Dq yes | |
656 | (to send TCP keepalive messages), and the client will notice | |
657 | if the network goes down or the remote host dies. | |
658 | This is important in scripts, and many users want it too. | |
659 | .Pp | |
660 | To disable TCP keepalive messages, the value should be set to | |
661 | .Dq no . | |
ff2d7a98 | 662 | .It Cm UsePrivilegedPort |
663 | Specifies whether to use a privileged port for outgoing connections. | |
664 | The argument must be | |
665 | .Dq yes | |
666 | or | |
667 | .Dq no . | |
668 | The default is | |
669 | .Dq no . | |
e54b3d7c | 670 | If set to |
671 | .Dq yes | |
672 | .Nm ssh | |
673 | must be setuid root. | |
ff2d7a98 | 674 | Note that this option must be set to |
675 | .Dq yes | |
70791e56 | 676 | for |
ff2d7a98 | 677 | .Cm RhostsRSAAuthentication |
70791e56 | 678 | with older servers. |
ff2d7a98 | 679 | .It Cm User |
680 | Specifies the user to log in as. | |
681 | This can be useful when a different user name is used on different machines. | |
682 | This saves the trouble of | |
683 | having to remember to give the user name on the command line. | |
684 | .It Cm UserKnownHostsFile | |
685 | Specifies a file to use for the user | |
686 | host key database instead of | |
687 | .Pa $HOME/.ssh/known_hosts . | |
70791e56 | 688 | .It Cm VerifyHostKeyDNS |
689 | Specifies whether to verify the remote key using DNS and SSHFP resource | |
690 | records. | |
416fd2a8 | 691 | If this option is set to |
692 | .Dq yes , | |
693 | the client will implicitly trust keys that match a secure fingerprint | |
694 | from DNS. | |
695 | Insecure fingerprints will be handled as if this option was set to | |
696 | .Dq ask . | |
697 | If this option is set to | |
698 | .Dq ask , | |
699 | information on fingerprint match will be displayed, but the user will still | |
700 | need to confirm new host keys according to the | |
701 | .Cm StrictHostKeyChecking | |
702 | option. | |
703 | The argument must be | |
704 | .Dq yes , | |
705 | .Dq no | |
706 | or | |
707 | .Dq ask . | |
70791e56 | 708 | The default is |
709 | .Dq no . | |
710 | Note that this option applies to protocol version 2 only. | |
ff2d7a98 | 711 | .It Cm XAuthLocation |
e54b3d7c | 712 | Specifies the full pathname of the |
ff2d7a98 | 713 | .Xr xauth 1 |
714 | program. | |
715 | The default is | |
716 | .Pa /usr/X11R6/bin/xauth . | |
717 | .El | |
718 | .Sh FILES | |
719 | .Bl -tag -width Ds | |
720 | .It Pa $HOME/.ssh/config | |
721 | This is the per-user configuration file. | |
722 | The format of this file is described above. | |
723 | This file is used by the | |
724 | .Nm ssh | |
725 | client. | |
726 | This file does not usually contain any sensitive information, | |
727 | but the recommended permissions are read/write for the user, and not | |
728 | accessible by others. | |
729 | .It Pa /etc/ssh/ssh_config | |
730 | Systemwide configuration file. | |
731 | This file provides defaults for those | |
732 | values that are not specified in the user's configuration file, and | |
733 | for those users who do not have a configuration file. | |
734 | This file must be world-readable. | |
735 | .El | |
70791e56 | 736 | .Sh SEE ALSO |
737 | .Xr ssh 1 | |
ff2d7a98 | 738 | .Sh AUTHORS |
739 | OpenSSH is a derivative of the original and free | |
740 | ssh 1.2.12 release by Tatu Ylonen. | |
741 | Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, | |
742 | Theo de Raadt and Dug Song | |
743 | removed many bugs, re-added newer features and | |
744 | created OpenSSH. | |
745 | Markus Friedl contributed the support for SSH | |
746 | protocol versions 1.5 and 2.0. |