diff options
-rw-r--r-- | ssh_config.5 | 566 |
1 files changed, 244 insertions, 322 deletions
diff --git a/ssh_config.5 b/ssh_config.5 index 1d5150080..591365f34 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -33,8 +33,8 @@ | |||
33 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 33 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
34 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 34 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" $OpenBSD: ssh_config.5,v 1.239 2016/09/28 17:59:22 jmc Exp $ | 36 | .\" $OpenBSD: ssh_config.5,v 1.240 2016/10/15 19:56:25 jmc Exp $ |
37 | .Dd $Mdocdate: September 28 2016 $ | 37 | .Dd $Mdocdate: October 15 2016 $ |
38 | .Dt SSH_CONFIG 5 | 38 | .Dt SSH_CONFIG 5 |
39 | .Os | 39 | .Os |
40 | .Sh NAME | 40 | .Sh NAME |
@@ -62,25 +62,25 @@ system-wide configuration file | |||
62 | For each parameter, the first obtained value | 62 | For each parameter, the first obtained value |
63 | will be used. | 63 | will be used. |
64 | The configuration files contain sections separated by | 64 | The configuration files contain sections separated by |
65 | .Dq Host | 65 | .Cm Host |
66 | specifications, and that section is only applied for hosts that | 66 | specifications, and that section is only applied for hosts that |
67 | match one of the patterns given in the specification. | 67 | match one of the patterns given in the specification. |
68 | The matched host name is usually the one given on the command line | 68 | The matched host name is usually the one given on the command line |
69 | (see the | 69 | (see the |
70 | .Cm CanonicalizeHostname | 70 | .Cm CanonicalizeHostname |
71 | option for exceptions.) | 71 | option for exceptions). |
72 | .Pp | 72 | .Pp |
73 | Since the first obtained value for each parameter is used, more | 73 | Since the first obtained value for each parameter is used, more |
74 | host-specific declarations should be given near the beginning of the | 74 | host-specific declarations should be given near the beginning of the |
75 | file, and general defaults at the end. | 75 | file, and general defaults at the end. |
76 | .Pp | 76 | .Pp |
77 | The configuration file has the following format: | 77 | The file contains keyword-argument pairs, one per line. |
78 | .Pp | 78 | Lines starting with |
79 | Empty lines and lines starting with | ||
80 | .Ql # | 79 | .Ql # |
81 | are comments. | 80 | and empty lines are interpreted as comments. |
82 | Otherwise a line is of the format | 81 | Arguments may optionally be enclosed in double quotes |
83 | .Dq keyword arguments . | 82 | .Pq \&" |
83 | in order to represent arguments containing spaces. | ||
84 | Configuration options may be separated by whitespace or | 84 | Configuration options may be separated by whitespace or |
85 | optional whitespace and exactly one | 85 | optional whitespace and exactly one |
86 | .Ql = ; | 86 | .Ql = ; |
@@ -92,9 +92,6 @@ and | |||
92 | .Nm sftp | 92 | .Nm sftp |
93 | .Fl o | 93 | .Fl o |
94 | option. | 94 | option. |
95 | Arguments may optionally be enclosed in double quotes | ||
96 | .Pq \&" | ||
97 | in order to represent arguments containing spaces. | ||
98 | .Pp | 95 | .Pp |
99 | The possible | 96 | The possible |
100 | keywords and their meanings are as follows (note that | 97 | keywords and their meanings are as follows (note that |
@@ -117,7 +114,7 @@ The host is usually the | |||
117 | argument given on the command line | 114 | argument given on the command line |
118 | (see the | 115 | (see the |
119 | .Cm CanonicalizeHostname | 116 | .Cm CanonicalizeHostname |
120 | option for exceptions.) | 117 | keyword for exceptions). |
121 | .Pp | 118 | .Pp |
122 | A pattern entry may be negated by prefixing it with an exclamation mark | 119 | A pattern entry may be negated by prefixing it with an exclamation mark |
123 | .Pq Sq !\& . | 120 | .Pq Sq !\& . |
@@ -212,57 +209,54 @@ files). | |||
212 | Specifies whether keys should be automatically added to a running | 209 | Specifies whether keys should be automatically added to a running |
213 | .Xr ssh-agent 1 . | 210 | .Xr ssh-agent 1 . |
214 | If this option is set to | 211 | If this option is set to |
215 | .Dq yes | 212 | .Cm yes |
216 | and a key is loaded from a file, the key and its passphrase are added to | 213 | and a key is loaded from a file, the key and its passphrase are added to |
217 | the agent with the default lifetime, as if by | 214 | the agent with the default lifetime, as if by |
218 | .Xr ssh-add 1 . | 215 | .Xr ssh-add 1 . |
219 | If this option is set to | 216 | If this option is set to |
220 | .Dq ask , | 217 | .Cm ask , |
221 | .Nm ssh | 218 | .Xr ssh 1 |
222 | will require confirmation using the | 219 | will require confirmation using the |
223 | .Ev SSH_ASKPASS | 220 | .Ev SSH_ASKPASS |
224 | program before adding a key (see | 221 | program before adding a key (see |
225 | .Xr ssh-add 1 | 222 | .Xr ssh-add 1 |
226 | for details). | 223 | for details). |
227 | If this option is set to | 224 | If this option is set to |
228 | .Dq confirm , | 225 | .Cm confirm , |
229 | each use of the key must be confirmed, as if the | 226 | each use of the key must be confirmed, as if the |
230 | .Fl c | 227 | .Fl c |
231 | option was specified to | 228 | option was specified to |
232 | .Xr ssh-add 1 . | 229 | .Xr ssh-add 1 . |
233 | If this option is set to | 230 | If this option is set to |
234 | .Dq no , | 231 | .Cm no , |
235 | no keys are added to the agent. | 232 | no keys are added to the agent. |
236 | The argument must be | 233 | The argument must be |
237 | .Dq yes , | 234 | .Cm yes , |
238 | .Dq confirm , | 235 | .Cm confirm , |
239 | .Dq ask , | 236 | .Cm ask , |
240 | or | 237 | or |
241 | .Dq no . | 238 | .Cm no |
242 | The default is | 239 | (the default). |
243 | .Dq no . | ||
244 | .It Cm AddressFamily | 240 | .It Cm AddressFamily |
245 | Specifies which address family to use when connecting. | 241 | Specifies which address family to use when connecting. |
246 | Valid arguments are | 242 | Valid arguments are |
247 | .Dq any , | 243 | .Cm any |
248 | .Dq inet | 244 | (the default), |
245 | .Cm inet | ||
249 | (use IPv4 only), or | 246 | (use IPv4 only), or |
250 | .Dq inet6 | 247 | .Cm inet6 |
251 | (use IPv6 only). | 248 | (use IPv6 only). |
252 | The default is | ||
253 | .Dq any . | ||
254 | .It Cm BatchMode | 249 | .It Cm BatchMode |
255 | If set to | 250 | If set to |
256 | .Dq yes , | 251 | .Cm yes , |
257 | passphrase/password querying will be disabled. | 252 | passphrase/password querying will be disabled. |
258 | This option is useful in scripts and other batch jobs where no user | 253 | This option is useful in scripts and other batch jobs where no user |
259 | is present to supply the password. | 254 | is present to supply the password. |
260 | The argument must be | 255 | The argument must be |
261 | .Dq yes | 256 | .Cm yes |
262 | or | 257 | or |
263 | .Dq no . | 258 | .Cm no |
264 | The default is | 259 | (the default). |
265 | .Dq no . | ||
266 | .It Cm BindAddress | 260 | .It Cm BindAddress |
267 | Use the specified address on the local machine as the source address of | 261 | Use the specified address on the local machine as the source address of |
268 | the connection. | 262 | the connection. |
@@ -270,7 +264,7 @@ Only useful on systems with more than one address. | |||
270 | Note that this option does not work if | 264 | Note that this option does not work if |
271 | .Cm UsePrivilegedPort | 265 | .Cm UsePrivilegedPort |
272 | is set to | 266 | is set to |
273 | .Dq yes . | 267 | .Cm yes . |
274 | .It Cm CanonicalDomains | 268 | .It Cm CanonicalDomains |
275 | When | 269 | When |
276 | .Cm CanonicalizeHostname | 270 | .Cm CanonicalizeHostname |
@@ -279,11 +273,11 @@ search for the specified destination host. | |||
279 | .It Cm CanonicalizeFallbackLocal | 273 | .It Cm CanonicalizeFallbackLocal |
280 | Specifies whether to fail with an error when hostname canonicalization fails. | 274 | Specifies whether to fail with an error when hostname canonicalization fails. |
281 | The default, | 275 | The default, |
282 | .Dq yes , | 276 | .Cm yes , |
283 | will attempt to look up the unqualified hostname using the system resolver's | 277 | will attempt to look up the unqualified hostname using the system resolver's |
284 | search rules. | 278 | search rules. |
285 | A value of | 279 | A value of |
286 | .Dq no | 280 | .Cm no |
287 | will cause | 281 | will cause |
288 | .Xr ssh 1 | 282 | .Xr ssh 1 |
289 | to fail instantly if | 283 | to fail instantly if |
@@ -294,11 +288,11 @@ specified by | |||
294 | .It Cm CanonicalizeHostname | 288 | .It Cm CanonicalizeHostname |
295 | Controls whether explicit hostname canonicalization is performed. | 289 | Controls whether explicit hostname canonicalization is performed. |
296 | The default, | 290 | The default, |
297 | .Dq no , | 291 | .Cm no , |
298 | is not to perform any name rewriting and let the system resolver handle all | 292 | is not to perform any name rewriting and let the system resolver handle all |
299 | hostname lookups. | 293 | hostname lookups. |
300 | If set to | 294 | If set to |
301 | .Dq yes | 295 | .Cm yes |
302 | then, for connections that do not use a | 296 | then, for connections that do not use a |
303 | .Cm ProxyCommand , | 297 | .Cm ProxyCommand , |
304 | .Xr ssh 1 | 298 | .Xr ssh 1 |
@@ -311,7 +305,7 @@ rules. | |||
311 | If | 305 | If |
312 | .Cm CanonicalizeHostname | 306 | .Cm CanonicalizeHostname |
313 | is set to | 307 | is set to |
314 | .Dq always , | 308 | .Cm always , |
315 | then canonicalization is applied to proxied connections too. | 309 | then canonicalization is applied to proxied connections too. |
316 | .Pp | 310 | .Pp |
317 | If this option is enabled, then the configuration files are processed | 311 | If this option is enabled, then the configuration files are processed |
@@ -323,8 +317,7 @@ stanzas. | |||
323 | .It Cm CanonicalizeMaxDots | 317 | .It Cm CanonicalizeMaxDots |
324 | Specifies the maximum number of dot characters in a hostname before | 318 | Specifies the maximum number of dot characters in a hostname before |
325 | canonicalization is disabled. | 319 | canonicalization is disabled. |
326 | The default, | 320 | The default, 1, |
327 | .Dq 1 , | ||
328 | allows a single dot (i.e. hostname.subdomain). | 321 | allows a single dot (i.e. hostname.subdomain). |
329 | .It Cm CanonicalizePermittedCNAMEs | 322 | .It Cm CanonicalizePermittedCNAMEs |
330 | Specifies rules to determine whether CNAMEs should be followed when | 323 | Specifies rules to determine whether CNAMEs should be followed when |
@@ -339,13 +332,13 @@ and | |||
339 | is a pattern-list of domains that they may resolve to. | 332 | is a pattern-list of domains that they may resolve to. |
340 | .Pp | 333 | .Pp |
341 | For example, | 334 | For example, |
342 | .Dq *.a.example.com:*.b.example.com,*.c.example.com | 335 | .Qq *.a.example.com:*.b.example.com,*.c.example.com |
343 | will allow hostnames matching | 336 | will allow hostnames matching |
344 | .Dq *.a.example.com | 337 | .Qq *.a.example.com |
345 | to be canonicalized to names in the | 338 | to be canonicalized to names in the |
346 | .Dq *.b.example.com | 339 | .Qq *.b.example.com |
347 | or | 340 | or |
348 | .Dq *.c.example.com | 341 | .Qq *.c.example.com |
349 | domains. | 342 | domains. |
350 | .It Cm CertificateFile | 343 | .It Cm CertificateFile |
351 | Specifies a file from which the user's certificate is read. | 344 | Specifies a file from which the user's certificate is read. |
@@ -378,47 +371,42 @@ authentication. | |||
378 | .It Cm ChallengeResponseAuthentication | 371 | .It Cm ChallengeResponseAuthentication |
379 | Specifies whether to use challenge-response authentication. | 372 | Specifies whether to use challenge-response authentication. |
380 | The argument to this keyword must be | 373 | The argument to this keyword must be |
381 | .Dq yes | 374 | .Cm yes |
375 | (the default) | ||
382 | or | 376 | or |
383 | .Dq no . | 377 | .Cm no . |
384 | The default is | ||
385 | .Dq yes . | ||
386 | .It Cm CheckHostIP | 378 | .It Cm CheckHostIP |
387 | If this flag is set to | 379 | If set to |
388 | .Dq yes , | 380 | .Cm yes |
381 | (the default), | ||
389 | .Xr ssh 1 | 382 | .Xr ssh 1 |
390 | will additionally check the host IP address in the | 383 | will additionally check the host IP address in the |
391 | .Pa known_hosts | 384 | .Pa known_hosts |
392 | file. | 385 | file. |
393 | This allows ssh to detect if a host key changed due to DNS spoofing | 386 | This allows it to detect if a host key changed due to DNS spoofing |
394 | and will add addresses of destination hosts to | 387 | and will add addresses of destination hosts to |
395 | .Pa ~/.ssh/known_hosts | 388 | .Pa ~/.ssh/known_hosts |
396 | in the process, regardless of the setting of | 389 | in the process, regardless of the setting of |
397 | .Cm StrictHostKeyChecking . | 390 | .Cm StrictHostKeyChecking . |
398 | If the option is set to | 391 | If the option is set to |
399 | .Dq no , | 392 | .Cm no , |
400 | the check will not be executed. | 393 | the check will not be executed. |
401 | The default is | ||
402 | .Dq yes . | ||
403 | .It Cm Cipher | 394 | .It Cm Cipher |
404 | Specifies the cipher to use for encrypting the session | 395 | Specifies the cipher to use for encrypting the session |
405 | in protocol version 1. | 396 | in protocol version 1. |
406 | Currently, | 397 | Currently, |
407 | .Dq blowfish , | 398 | .Cm blowfish , |
408 | .Dq 3des , | 399 | .Cm 3des |
400 | (the default), | ||
409 | and | 401 | and |
410 | .Dq des | 402 | .Cm des |
411 | are supported. | 403 | are supported, |
412 | .Ar des | 404 | though |
405 | .Cm des | ||
413 | is only supported in the | 406 | is only supported in the |
414 | .Xr ssh 1 | 407 | .Xr ssh 1 |
415 | client for interoperability with legacy protocol 1 implementations | 408 | client for interoperability with legacy protocol 1 implementations; |
416 | that do not support the | 409 | its use is strongly discouraged due to cryptographic weaknesses. |
417 | .Ar 3des | ||
418 | cipher. | ||
419 | Its use is strongly discouraged due to cryptographic weaknesses. | ||
420 | The default is | ||
421 | .Dq 3des . | ||
422 | .It Cm Ciphers | 410 | .It Cm Ciphers |
423 | Specifies the ciphers allowed for protocol version 2 | 411 | Specifies the ciphers allowed for protocol version 2 |
424 | in order of preference. | 412 | in order of preference. |
@@ -429,39 +417,23 @@ character, then the specified ciphers will be appended to the default set | |||
429 | instead of replacing them. | 417 | instead of replacing them. |
430 | .Pp | 418 | .Pp |
431 | The supported ciphers are: | 419 | The supported ciphers are: |
432 | .Pp | 420 | .Bd -literal -offset indent |
433 | .Bl -item -compact -offset indent | ||
434 | .It | ||
435 | 3des-cbc | 421 | 3des-cbc |
436 | .It | ||
437 | aes128-cbc | 422 | aes128-cbc |
438 | .It | ||
439 | aes192-cbc | 423 | aes192-cbc |
440 | .It | ||
441 | aes256-cbc | 424 | aes256-cbc |
442 | .It | ||
443 | aes128-ctr | 425 | aes128-ctr |
444 | .It | ||
445 | aes192-ctr | 426 | aes192-ctr |
446 | .It | ||
447 | aes256-ctr | 427 | aes256-ctr |
448 | .It | ||
449 | aes128-gcm@openssh.com | 428 | aes128-gcm@openssh.com |
450 | .It | ||
451 | aes256-gcm@openssh.com | 429 | aes256-gcm@openssh.com |
452 | .It | ||
453 | arcfour | 430 | arcfour |
454 | .It | ||
455 | arcfour128 | 431 | arcfour128 |
456 | .It | ||
457 | arcfour256 | 432 | arcfour256 |
458 | .It | ||
459 | blowfish-cbc | 433 | blowfish-cbc |
460 | .It | ||
461 | cast128-cbc | 434 | cast128-cbc |
462 | .It | ||
463 | chacha20-poly1305@openssh.com | 435 | chacha20-poly1305@openssh.com |
464 | .El | 436 | .Ed |
465 | .Pp | 437 | .Pp |
466 | The default is: | 438 | The default is: |
467 | .Bd -literal -offset indent | 439 | .Bd -literal -offset indent |
@@ -471,12 +443,8 @@ aes128-gcm@openssh.com,aes256-gcm@openssh.com, | |||
471 | aes128-cbc,aes192-cbc,aes256-cbc | 443 | aes128-cbc,aes192-cbc,aes256-cbc |
472 | .Ed | 444 | .Ed |
473 | .Pp | 445 | .Pp |
474 | The list of available ciphers may also be obtained using the | 446 | The list of available ciphers may also be obtained using |
475 | .Fl Q | 447 | .Qq ssh -Q cipher . |
476 | option of | ||
477 | .Xr ssh 1 | ||
478 | with an argument of | ||
479 | .Dq cipher . | ||
480 | .It Cm ClearAllForwardings | 448 | .It Cm ClearAllForwardings |
481 | Specifies that all local, remote, and dynamic port forwardings | 449 | Specifies that all local, remote, and dynamic port forwardings |
482 | specified in the configuration files or on the command line be | 450 | specified in the configuration files or on the command line be |
@@ -489,19 +457,17 @@ configuration files, and is automatically set by | |||
489 | and | 457 | and |
490 | .Xr sftp 1 . | 458 | .Xr sftp 1 . |
491 | The argument must be | 459 | The argument must be |
492 | .Dq yes | 460 | .Cm yes |
493 | or | 461 | or |
494 | .Dq no . | 462 | .Cm no |
495 | The default is | 463 | (the default). |
496 | .Dq no . | ||
497 | .It Cm Compression | 464 | .It Cm Compression |
498 | Specifies whether to use compression. | 465 | Specifies whether to use compression. |
499 | The argument must be | 466 | The argument must be |
500 | .Dq yes | 467 | .Cm yes |
501 | or | 468 | or |
502 | .Dq no . | 469 | .Cm no |
503 | The default is | 470 | (the default). |
504 | .Dq no . | ||
505 | .It Cm CompressionLevel | 471 | .It Cm CompressionLevel |
506 | Specifies the compression level to use if compression is enabled. | 472 | Specifies the compression level to use if compression is enabled. |
507 | The argument must be an integer from 1 (fast) to 9 (slow, best). | 473 | The argument must be an integer from 1 (fast) to 9 (slow, best). |
@@ -522,7 +488,7 @@ not when it refuses the connection. | |||
522 | .It Cm ControlMaster | 488 | .It Cm ControlMaster |
523 | Enables the sharing of multiple sessions over a single network connection. | 489 | Enables the sharing of multiple sessions over a single network connection. |
524 | When set to | 490 | When set to |
525 | .Dq yes , | 491 | .Cm yes , |
526 | .Xr ssh 1 | 492 | .Xr ssh 1 |
527 | will listen for connections on a control socket specified using the | 493 | will listen for connections on a control socket specified using the |
528 | .Cm ControlPath | 494 | .Cm ControlPath |
@@ -532,21 +498,23 @@ Additional sessions can connect to this socket using the same | |||
532 | with | 498 | with |
533 | .Cm ControlMaster | 499 | .Cm ControlMaster |
534 | set to | 500 | set to |
535 | .Dq no | 501 | .Cm no |
536 | (the default). | 502 | (the default). |
537 | These sessions will try to reuse the master instance's network connection | 503 | These sessions will try to reuse the master instance's network connection |
538 | rather than initiating new ones, but will fall back to connecting normally | 504 | rather than initiating new ones, but will fall back to connecting normally |
539 | if the control socket does not exist, or is not listening. | 505 | if the control socket does not exist, or is not listening. |
540 | .Pp | 506 | .Pp |
541 | Setting this to | 507 | Setting this to |
542 | .Dq ask | 508 | .Cm ask |
543 | will cause ssh | 509 | will cause |
510 | .Xr ssh 1 | ||
544 | to listen for control connections, but require confirmation using | 511 | to listen for control connections, but require confirmation using |
545 | .Xr ssh-askpass 1 . | 512 | .Xr ssh-askpass 1 . |
546 | If the | 513 | If the |
547 | .Cm ControlPath | 514 | .Cm ControlPath |
548 | cannot be opened, | 515 | cannot be opened, |
549 | ssh will continue without connecting to a master instance. | 516 | .Xr ssh 1 |
517 | will continue without connecting to a master instance. | ||
550 | .Pp | 518 | .Pp |
551 | X11 and | 519 | X11 and |
552 | .Xr ssh-agent 1 | 520 | .Xr ssh-agent 1 |
@@ -558,18 +526,18 @@ Two additional options allow for opportunistic multiplexing: try to use a | |||
558 | master connection but fall back to creating a new one if one does not already | 526 | master connection but fall back to creating a new one if one does not already |
559 | exist. | 527 | exist. |
560 | These options are: | 528 | These options are: |
561 | .Dq auto | 529 | .Cm auto |
562 | and | 530 | and |
563 | .Dq autoask . | 531 | .Cm autoask . |
564 | The latter requires confirmation like the | 532 | The latter requires confirmation like the |
565 | .Dq ask | 533 | .Cm ask |
566 | option. | 534 | option. |
567 | .It Cm ControlPath | 535 | .It Cm ControlPath |
568 | Specify the path to the control socket used for connection sharing as described | 536 | Specify the path to the control socket used for connection sharing as described |
569 | in the | 537 | in the |
570 | .Cm ControlMaster | 538 | .Cm ControlMaster |
571 | section above or the string | 539 | section above or the string |
572 | .Dq none | 540 | .Cm none |
573 | to disable connection sharing. | 541 | to disable connection sharing. |
574 | Arguments to | 542 | Arguments to |
575 | .Cm ControlPath | 543 | .Cm ControlPath |
@@ -590,18 +558,15 @@ specifies that the master connection should remain open | |||
590 | in the background (waiting for future client connections) | 558 | in the background (waiting for future client connections) |
591 | after the initial client connection has been closed. | 559 | after the initial client connection has been closed. |
592 | If set to | 560 | If set to |
593 | .Dq no , | 561 | .Cm no , |
594 | then the master connection will not be placed into the background, | 562 | then the master connection will not be placed into the background, |
595 | and will close as soon as the initial client connection is closed. | 563 | and will close as soon as the initial client connection is closed. |
596 | If set to | 564 | If set to |
597 | .Dq yes | 565 | .Cm yes |
598 | or | 566 | or 0, |
599 | .Dq 0 , | ||
600 | then the master connection will remain in the background indefinitely | 567 | then the master connection will remain in the background indefinitely |
601 | (until killed or closed via a mechanism such as the | 568 | (until killed or closed via a mechanism such as the |
602 | .Xr ssh 1 | 569 | .Qq ssh -O exit ) . |
603 | .Dq Fl O No exit | ||
604 | option). | ||
605 | If set to a time in seconds, or a time in any of the formats documented in | 570 | If set to a time in seconds, or a time in any of the formats documented in |
606 | .Xr sshd_config 5 , | 571 | .Xr sshd_config 5 , |
607 | then the backgrounded master connection will automatically terminate | 572 | then the backgrounded master connection will automatically terminate |
@@ -627,7 +592,7 @@ may be used to bind the connection to a specific address. | |||
627 | The | 592 | The |
628 | .Ar bind_address | 593 | .Ar bind_address |
629 | of | 594 | of |
630 | .Dq localhost | 595 | .Cm localhost |
631 | indicates that the listening port be bound for local use only, while an | 596 | indicates that the listening port be bound for local use only, while an |
632 | empty address or | 597 | empty address or |
633 | .Sq * | 598 | .Sq * |
@@ -641,7 +606,7 @@ additional forwardings can be given on the command line. | |||
641 | Only the superuser can forward privileged ports. | 606 | Only the superuser can forward privileged ports. |
642 | .It Cm EnableSSHKeysign | 607 | .It Cm EnableSSHKeysign |
643 | Setting this option to | 608 | Setting this option to |
644 | .Dq yes | 609 | .Cm yes |
645 | in the global client configuration file | 610 | in the global client configuration file |
646 | .Pa /etc/ssh/ssh_config | 611 | .Pa /etc/ssh/ssh_config |
647 | enables the use of the helper program | 612 | enables the use of the helper program |
@@ -649,11 +614,10 @@ enables the use of the helper program | |||
649 | during | 614 | during |
650 | .Cm HostbasedAuthentication . | 615 | .Cm HostbasedAuthentication . |
651 | The argument must be | 616 | The argument must be |
652 | .Dq yes | 617 | .Cm yes |
653 | or | 618 | or |
654 | .Dq no . | 619 | .Cm no |
655 | The default is | 620 | (the default). |
656 | .Dq no . | ||
657 | This option should be placed in the non-hostspecific section. | 621 | This option should be placed in the non-hostspecific section. |
658 | See | 622 | See |
659 | .Xr ssh-keysign 8 | 623 | .Xr ssh-keysign 8 |
@@ -666,7 +630,7 @@ be set on the command line. | |||
666 | The argument should be a single character, | 630 | The argument should be a single character, |
667 | .Ql ^ | 631 | .Ql ^ |
668 | followed by a letter, or | 632 | followed by a letter, or |
669 | .Dq none | 633 | .Cm none |
670 | to disable the escape | 634 | to disable the escape |
671 | character entirely (making the connection transparent for binary | 635 | character entirely (making the connection transparent for binary |
672 | data). | 636 | data). |
@@ -683,28 +647,25 @@ for example, cause | |||
683 | .Xr ssh 1 | 647 | .Xr ssh 1 |
684 | to exit if TCP connections to the ultimate forwarding destination fail. | 648 | to exit if TCP connections to the ultimate forwarding destination fail. |
685 | The argument must be | 649 | The argument must be |
686 | .Dq yes | 650 | .Cm yes |
687 | or | 651 | or |
688 | .Dq no . | 652 | .Cm no |
689 | The default is | 653 | (the default). |
690 | .Dq no . | ||
691 | .It Cm FingerprintHash | 654 | .It Cm FingerprintHash |
692 | Specifies the hash algorithm used when displaying key fingerprints. | 655 | Specifies the hash algorithm used when displaying key fingerprints. |
693 | Valid options are: | 656 | Valid options are: |
694 | .Dq md5 | 657 | .Cm md5 |
695 | and | 658 | and |
696 | .Dq sha256 . | 659 | .Cm sha256 |
697 | The default is | 660 | (the default). |
698 | .Dq sha256 . | ||
699 | .It Cm ForwardAgent | 661 | .It Cm ForwardAgent |
700 | Specifies whether the connection to the authentication agent (if any) | 662 | Specifies whether the connection to the authentication agent (if any) |
701 | will be forwarded to the remote machine. | 663 | will be forwarded to the remote machine. |
702 | The argument must be | 664 | The argument must be |
703 | .Dq yes | 665 | .Cm yes |
704 | or | 666 | or |
705 | .Dq no . | 667 | .Cm no |
706 | The default is | 668 | (the default). |
707 | .Dq no . | ||
708 | .Pp | 669 | .Pp |
709 | Agent forwarding should be enabled with caution. | 670 | Agent forwarding should be enabled with caution. |
710 | Users with the ability to bypass file permissions on the remote host | 671 | Users with the ability to bypass file permissions on the remote host |
@@ -719,11 +680,10 @@ over the secure channel and | |||
719 | .Ev DISPLAY | 680 | .Ev DISPLAY |
720 | set. | 681 | set. |
721 | The argument must be | 682 | The argument must be |
722 | .Dq yes | 683 | .Cm yes |
723 | or | 684 | or |
724 | .Dq no . | 685 | .Cm no |
725 | The default is | 686 | (the default). |
726 | .Dq no . | ||
727 | .Pp | 687 | .Pp |
728 | X11 forwarding should be enabled with caution. | 688 | X11 forwarding should be enabled with caution. |
729 | Users with the ability to bypass file permissions on the remote host | 689 | Users with the ability to bypass file permissions on the remote host |
@@ -736,7 +696,8 @@ option is also enabled. | |||
736 | .It Cm ForwardX11Timeout | 696 | .It Cm ForwardX11Timeout |
737 | Specify a timeout for untrusted X11 forwarding | 697 | Specify a timeout for untrusted X11 forwarding |
738 | using the format described in the | 698 | using the format described in the |
739 | TIME FORMATS section of | 699 | .Sx TIME FORMATS |
700 | section of | ||
740 | .Xr sshd_config 5 . | 701 | .Xr sshd_config 5 . |
741 | X11 connections received by | 702 | X11 connections received by |
742 | .Xr ssh 1 | 703 | .Xr ssh 1 |
@@ -745,11 +706,12 @@ The default is to disable untrusted X11 forwarding after twenty minutes has | |||
745 | elapsed. | 706 | elapsed. |
746 | .It Cm ForwardX11Trusted | 707 | .It Cm ForwardX11Trusted |
747 | If this option is set to | 708 | If this option is set to |
748 | .Dq yes , | 709 | .Cm yes , |
749 | remote X11 clients will have full access to the original X11 display. | 710 | remote X11 clients will have full access to the original X11 display. |
750 | .Pp | 711 | .Pp |
751 | If this option is set to | 712 | If this option is set to |
752 | .Dq no , | 713 | .Cm no |
714 | (the default), | ||
753 | remote X11 clients will be considered untrusted and prevented | 715 | remote X11 clients will be considered untrusted and prevented |
754 | from stealing or tampering with data belonging to trusted X11 | 716 | from stealing or tampering with data belonging to trusted X11 |
755 | clients. | 717 | clients. |
@@ -758,9 +720,6 @@ Furthermore, the | |||
758 | token used for the session will be set to expire after 20 minutes. | 720 | token used for the session will be set to expire after 20 minutes. |
759 | Remote clients will be refused access after this time. | 721 | Remote clients will be refused access after this time. |
760 | .Pp | 722 | .Pp |
761 | The default is | ||
762 | .Dq no . | ||
763 | .Pp | ||
764 | See the X11 SECURITY extension specification for full details on | 723 | See the X11 SECURITY extension specification for full details on |
765 | the restrictions imposed on untrusted clients. | 724 | the restrictions imposed on untrusted clients. |
766 | .It Cm GatewayPorts | 725 | .It Cm GatewayPorts |
@@ -775,11 +734,10 @@ can be used to specify that ssh | |||
775 | should bind local port forwardings to the wildcard address, | 734 | should bind local port forwardings to the wildcard address, |
776 | thus allowing remote hosts to connect to forwarded ports. | 735 | thus allowing remote hosts to connect to forwarded ports. |
777 | The argument must be | 736 | The argument must be |
778 | .Dq yes | 737 | .Cm yes |
779 | or | 738 | or |
780 | .Dq no . | 739 | .Cm no |
781 | The default is | 740 | (the default). |
782 | .Dq no . | ||
783 | .It Cm GlobalKnownHostsFile | 741 | .It Cm GlobalKnownHostsFile |
784 | Specifies one or more files to use for the global | 742 | Specifies one or more files to use for the global |
785 | host key database, separated by whitespace. | 743 | host key database, separated by whitespace. |
@@ -789,11 +747,11 @@ The default is | |||
789 | .It Cm GSSAPIAuthentication | 747 | .It Cm GSSAPIAuthentication |
790 | Specifies whether user authentication based on GSSAPI is allowed. | 748 | Specifies whether user authentication based on GSSAPI is allowed. |
791 | The default is | 749 | The default is |
792 | .Dq no . | 750 | .Cm no . |
793 | .It Cm GSSAPIDelegateCredentials | 751 | .It Cm GSSAPIDelegateCredentials |
794 | Forward (delegate) credentials to the server. | 752 | Forward (delegate) credentials to the server. |
795 | The default is | 753 | The default is |
796 | .Dq no . | 754 | .Cm no . |
797 | .It Cm HashKnownHosts | 755 | .It Cm HashKnownHosts |
798 | Indicates that | 756 | Indicates that |
799 | .Xr ssh 1 | 757 | .Xr ssh 1 |
@@ -806,7 +764,7 @@ and | |||
806 | but they do not reveal identifying information should the file's contents | 764 | but they do not reveal identifying information should the file's contents |
807 | be disclosed. | 765 | be disclosed. |
808 | The default is | 766 | The default is |
809 | .Dq no . | 767 | .Cm no . |
810 | Note that existing names and addresses in known hosts files | 768 | Note that existing names and addresses in known hosts files |
811 | will not be converted automatically, | 769 | will not be converted automatically, |
812 | but may be manually hashed using | 770 | but may be manually hashed using |
@@ -815,11 +773,10 @@ but may be manually hashed using | |||
815 | Specifies whether to try rhosts based authentication with public key | 773 | Specifies whether to try rhosts based authentication with public key |
816 | authentication. | 774 | authentication. |
817 | The argument must be | 775 | The argument must be |
818 | .Dq yes | 776 | .Cm yes |
819 | or | 777 | or |
820 | .Dq no . | 778 | .Cm no |
821 | The default is | 779 | (the default). |
822 | .Dq no . | ||
823 | .It Cm HostbasedKeyTypes | 780 | .It Cm HostbasedKeyTypes |
824 | Specifies the key types that will be used for hostbased authentication | 781 | Specifies the key types that will be used for hostbased authentication |
825 | as a comma-separated pattern list. | 782 | as a comma-separated pattern list. |
@@ -864,12 +821,8 @@ ssh-ed25519,ssh-rsa | |||
864 | If hostkeys are known for the destination host then this default is modified | 821 | If hostkeys are known for the destination host then this default is modified |
865 | to prefer their algorithms. | 822 | to prefer their algorithms. |
866 | .Pp | 823 | .Pp |
867 | The list of available key types may also be obtained using the | 824 | The list of available key types may also be obtained using |
868 | .Fl Q | 825 | .Qq ssh -Q key . |
869 | option of | ||
870 | .Xr ssh 1 | ||
871 | with an argument of | ||
872 | .Dq key . | ||
873 | .It Cm HostKeyAlias | 826 | .It Cm HostKeyAlias |
874 | Specifies an alias that should be used instead of the | 827 | Specifies an alias that should be used instead of the |
875 | real host name when looking up or saving the host key | 828 | real host name when looking up or saving the host key |
@@ -904,26 +857,25 @@ or a | |||
904 | .Cm PKCS11Provider | 857 | .Cm PKCS11Provider |
905 | offers more identities. | 858 | offers more identities. |
906 | The argument to this keyword must be | 859 | The argument to this keyword must be |
907 | .Dq yes | 860 | .Cm yes |
908 | or | 861 | or |
909 | .Dq no . | 862 | .Cm no |
863 | (the default). | ||
910 | This option is intended for situations where ssh-agent | 864 | This option is intended for situations where ssh-agent |
911 | offers many different identities. | 865 | offers many different identities. |
912 | The default is | ||
913 | .Dq no . | ||
914 | .It Cm IdentityAgent | 866 | .It Cm IdentityAgent |
915 | Specifies the | 867 | Specifies the |
916 | .Ux Ns -domain | 868 | .Ux Ns -domain |
917 | socket used to communicate with the authentication agent. | 869 | socket used to communicate with the authentication agent. |
918 | .Pp | 870 | .Pp |
919 | This option overrides the | 871 | This option overrides the |
920 | .Dq SSH_AUTH_SOCK | 872 | .Ev SSH_AUTH_SOCK |
921 | environment variable and can be used to select a specific agent. | 873 | environment variable and can be used to select a specific agent. |
922 | Setting the socket name to | 874 | Setting the socket name to |
923 | .Dq none | 875 | .Cm none |
924 | disables the use of an authentication agent. | 876 | disables the use of an authentication agent. |
925 | If the string | 877 | If the string |
926 | .Dq SSH_AUTH_SOCK | 878 | .Qq SSH_AUTH_SOCK |
927 | is specified, the location of the socket will be read from the | 879 | is specified, the location of the socket will be read from the |
928 | .Ev SSH_AUTH_SOCK | 880 | .Ev SSH_AUTH_SOCK |
929 | environment variable. | 881 | environment variable. |
@@ -999,7 +951,7 @@ Include the specified configuration file(s). | |||
999 | Multiple pathnames may be specified and each pathname may contain | 951 | Multiple pathnames may be specified and each pathname may contain |
1000 | .Xr glob 3 | 952 | .Xr glob 3 |
1001 | wildcards and, for user configurations, shell-like | 953 | wildcards and, for user configurations, shell-like |
1002 | .Dq ~ | 954 | .Sq ~ |
1003 | references to user home directories. | 955 | references to user home directories. |
1004 | Files without absolute paths are assumed to be in | 956 | Files without absolute paths are assumed to be in |
1005 | .Pa ~/.ssh | 957 | .Pa ~/.ssh |
@@ -1016,48 +968,47 @@ to perform conditional inclusion. | |||
1016 | .It Cm IPQoS | 968 | .It Cm IPQoS |
1017 | Specifies the IPv4 type-of-service or DSCP class for connections. | 969 | Specifies the IPv4 type-of-service or DSCP class for connections. |
1018 | Accepted values are | 970 | Accepted values are |
1019 | .Dq af11 , | 971 | .Cm af11 , |
1020 | .Dq af12 , | 972 | .Cm af12 , |
1021 | .Dq af13 , | 973 | .Cm af13 , |
1022 | .Dq af21 , | 974 | .Cm af21 , |
1023 | .Dq af22 , | 975 | .Cm af22 , |
1024 | .Dq af23 , | 976 | .Cm af23 , |
1025 | .Dq af31 , | 977 | .Cm af31 , |
1026 | .Dq af32 , | 978 | .Cm af32 , |
1027 | .Dq af33 , | 979 | .Cm af33 , |
1028 | .Dq af41 , | 980 | .Cm af41 , |
1029 | .Dq af42 , | 981 | .Cm af42 , |
1030 | .Dq af43 , | 982 | .Cm af43 , |
1031 | .Dq cs0 , | 983 | .Cm cs0 , |
1032 | .Dq cs1 , | 984 | .Cm cs1 , |
1033 | .Dq cs2 , | 985 | .Cm cs2 , |
1034 | .Dq cs3 , | 986 | .Cm cs3 , |
1035 | .Dq cs4 , | 987 | .Cm cs4 , |
1036 | .Dq cs5 , | 988 | .Cm cs5 , |
1037 | .Dq cs6 , | 989 | .Cm cs6 , |
1038 | .Dq cs7 , | 990 | .Cm cs7 , |
1039 | .Dq ef , | 991 | .Cm ef , |
1040 | .Dq lowdelay , | 992 | .Cm lowdelay , |
1041 | .Dq throughput , | 993 | .Cm throughput , |
1042 | .Dq reliability , | 994 | .Cm reliability , |
1043 | or a numeric value. | 995 | or a numeric value. |
1044 | This option may take one or two arguments, separated by whitespace. | 996 | This option may take one or two arguments, separated by whitespace. |
1045 | If one argument is specified, it is used as the packet class unconditionally. | 997 | If one argument is specified, it is used as the packet class unconditionally. |
1046 | If two values are specified, the first is automatically selected for | 998 | If two values are specified, the first is automatically selected for |
1047 | interactive sessions and the second for non-interactive sessions. | 999 | interactive sessions and the second for non-interactive sessions. |
1048 | The default is | 1000 | The default is |
1049 | .Dq lowdelay | 1001 | .Cm lowdelay |
1050 | for interactive sessions and | 1002 | for interactive sessions and |
1051 | .Dq throughput | 1003 | .Cm throughput |
1052 | for non-interactive sessions. | 1004 | for non-interactive sessions. |
1053 | .It Cm KbdInteractiveAuthentication | 1005 | .It Cm KbdInteractiveAuthentication |
1054 | Specifies whether to use keyboard-interactive authentication. | 1006 | Specifies whether to use keyboard-interactive authentication. |
1055 | The argument to this keyword must be | 1007 | The argument to this keyword must be |
1056 | .Dq yes | 1008 | .Cm yes |
1009 | (the default) | ||
1057 | or | 1010 | or |
1058 | .Dq no . | 1011 | .Cm no . |
1059 | The default is | ||
1060 | .Dq yes . | ||
1061 | .It Cm KbdInteractiveDevices | 1012 | .It Cm KbdInteractiveDevices |
1062 | Specifies the list of methods to use in keyboard-interactive authentication. | 1013 | Specifies the list of methods to use in keyboard-interactive authentication. |
1063 | Multiple method names must be comma-separated. | 1014 | Multiple method names must be comma-separated. |
@@ -1065,10 +1016,10 @@ The default is to use the server specified list. | |||
1065 | The methods available vary depending on what the server supports. | 1016 | The methods available vary depending on what the server supports. |
1066 | For an OpenSSH server, | 1017 | For an OpenSSH server, |
1067 | it may be zero or more of: | 1018 | it may be zero or more of: |
1068 | .Dq bsdauth , | 1019 | .Cm bsdauth , |
1069 | .Dq pam , | 1020 | .Cm pam , |
1070 | and | 1021 | and |
1071 | .Dq skey . | 1022 | .Cm skey . |
1072 | .It Cm KexAlgorithms | 1023 | .It Cm KexAlgorithms |
1073 | Specifies the available KEX (Key Exchange) algorithms. | 1024 | Specifies the available KEX (Key Exchange) algorithms. |
1074 | Multiple algorithms must be comma-separated. | 1025 | Multiple algorithms must be comma-separated. |
@@ -1085,12 +1036,8 @@ diffie-hellman-group-exchange-sha1, | |||
1085 | diffie-hellman-group14-sha1 | 1036 | diffie-hellman-group14-sha1 |
1086 | .Ed | 1037 | .Ed |
1087 | .Pp | 1038 | .Pp |
1088 | The list of available key exchange algorithms may also be obtained using the | 1039 | The list of available key exchange algorithms may also be obtained using |
1089 | .Fl Q | 1040 | .Qq ssh -Q kex . |
1090 | option of | ||
1091 | .Xr ssh 1 | ||
1092 | with an argument of | ||
1093 | .Dq kex . | ||
1094 | .It Cm LocalCommand | 1041 | .It Cm LocalCommand |
1095 | Specifies a command to execute on the local machine after successfully | 1042 | Specifies a command to execute on the local machine after successfully |
1096 | connecting to the server. | 1043 | connecting to the server. |
@@ -1133,7 +1080,7 @@ may be used to bind the connection to a specific address. | |||
1133 | The | 1080 | The |
1134 | .Ar bind_address | 1081 | .Ar bind_address |
1135 | of | 1082 | of |
1136 | .Dq localhost | 1083 | .Cm localhost |
1137 | indicates that the listening port be bound for local use only, while an | 1084 | indicates that the listening port be bound for local use only, while an |
1138 | empty address or | 1085 | empty address or |
1139 | .Sq * | 1086 | .Sq * |
@@ -1157,7 +1104,7 @@ character, then the specified algorithms will be appended to the default set | |||
1157 | instead of replacing them. | 1104 | instead of replacing them. |
1158 | .Pp | 1105 | .Pp |
1159 | The algorithms that contain | 1106 | The algorithms that contain |
1160 | .Dq -etm | 1107 | .Qq -etm |
1161 | calculate the MAC after encryption (encrypt-then-mac). | 1108 | calculate the MAC after encryption (encrypt-then-mac). |
1162 | These are considered safer and their use recommended. | 1109 | These are considered safer and their use recommended. |
1163 | .Pp | 1110 | .Pp |
@@ -1170,22 +1117,18 @@ umac-64@openssh.com,umac-128@openssh.com, | |||
1170 | hmac-sha2-256,hmac-sha2-512,hmac-sha1 | 1117 | hmac-sha2-256,hmac-sha2-512,hmac-sha1 |
1171 | .Ed | 1118 | .Ed |
1172 | .Pp | 1119 | .Pp |
1173 | The list of available MAC algorithms may also be obtained using the | 1120 | The list of available MAC algorithms may also be obtained using |
1174 | .Fl Q | 1121 | .Qq ssh -Q mac . |
1175 | option of | ||
1176 | .Xr ssh 1 | ||
1177 | with an argument of | ||
1178 | .Dq mac . | ||
1179 | .It Cm NoHostAuthenticationForLocalhost | 1122 | .It Cm NoHostAuthenticationForLocalhost |
1180 | This option can be used if the home directory is shared across machines. | 1123 | This option can be used if the home directory is shared across machines. |
1181 | In this case localhost will refer to a different machine on each of | 1124 | In this case localhost will refer to a different machine on each of |
1182 | the machines and the user will get many warnings about changed host keys. | 1125 | the machines and the user will get many warnings about changed host keys. |
1183 | However, this option disables host authentication for localhost. | 1126 | However, this option disables host authentication for localhost. |
1184 | The argument to this keyword must be | 1127 | The argument to this keyword must be |
1185 | .Dq yes | 1128 | .Cm yes |
1186 | or | 1129 | or |
1187 | .Dq no . | 1130 | .Cm no . |
1188 | The default is to check the host key for localhost. | 1131 | (the default). |
1189 | .It Cm NumberOfPasswordPrompts | 1132 | .It Cm NumberOfPasswordPrompts |
1190 | Specifies the number of password prompts before giving up. | 1133 | Specifies the number of password prompts before giving up. |
1191 | The argument to this keyword must be an integer. | 1134 | The argument to this keyword must be an integer. |
@@ -1193,11 +1136,10 @@ The default is 3. | |||
1193 | .It Cm PasswordAuthentication | 1136 | .It Cm PasswordAuthentication |
1194 | Specifies whether to use password authentication. | 1137 | Specifies whether to use password authentication. |
1195 | The argument to this keyword must be | 1138 | The argument to this keyword must be |
1196 | .Dq yes | 1139 | .Cm yes |
1140 | (the default) | ||
1197 | or | 1141 | or |
1198 | .Dq no . | 1142 | .Cm no . |
1199 | The default is | ||
1200 | .Dq yes . | ||
1201 | .It Cm PermitLocalCommand | 1143 | .It Cm PermitLocalCommand |
1202 | Allow local command execution via the | 1144 | Allow local command execution via the |
1203 | .Ic LocalCommand | 1145 | .Ic LocalCommand |
@@ -1206,11 +1148,10 @@ option or using the | |||
1206 | escape sequence in | 1148 | escape sequence in |
1207 | .Xr ssh 1 . | 1149 | .Xr ssh 1 . |
1208 | The argument must be | 1150 | The argument must be |
1209 | .Dq yes | 1151 | .Cm yes |
1210 | or | 1152 | or |
1211 | .Dq no . | 1153 | .Cm no |
1212 | The default is | 1154 | (the default). |
1213 | .Dq no . | ||
1214 | .It Cm PKCS11Provider | 1155 | .It Cm PKCS11Provider |
1215 | Specifies which PKCS#11 provider to use. | 1156 | Specifies which PKCS#11 provider to use. |
1216 | The argument to this keyword is the PKCS#11 shared library | 1157 | The argument to this keyword is the PKCS#11 shared library |
@@ -1235,18 +1176,14 @@ keyboard-interactive,password | |||
1235 | Specifies the protocol versions | 1176 | Specifies the protocol versions |
1236 | .Xr ssh 1 | 1177 | .Xr ssh 1 |
1237 | should support in order of preference. | 1178 | should support in order of preference. |
1238 | The possible values are | 1179 | The possible values are 1 and 2. |
1239 | .Sq 1 | ||
1240 | and | ||
1241 | .Sq 2 . | ||
1242 | Multiple versions must be comma-separated. | 1180 | Multiple versions must be comma-separated. |
1243 | When this option is set to | 1181 | When this option is set to |
1244 | .Dq 2,1 | 1182 | .Cm 2,1 |
1245 | .Nm ssh | 1183 | .Nm ssh |
1246 | will try version 2 and fall back to version 1 | 1184 | will try version 2 and fall back to version 1 |
1247 | if version 2 is not available. | 1185 | if version 2 is not available. |
1248 | The default is | 1186 | The default is version 2. |
1249 | .Sq 2 . | ||
1250 | Protocol 1 suffers from a number of cryptographic weaknesses and should | 1187 | Protocol 1 suffers from a number of cryptographic weaknesses and should |
1251 | not be used. | 1188 | not be used. |
1252 | It is only offered to support legacy devices. | 1189 | It is only offered to support legacy devices. |
@@ -1274,7 +1211,7 @@ Host key management will be done using the | |||
1274 | HostName of the host being connected (defaulting to the name typed by | 1211 | HostName of the host being connected (defaulting to the name typed by |
1275 | the user). | 1212 | the user). |
1276 | Setting the command to | 1213 | Setting the command to |
1277 | .Dq none | 1214 | .Cm none |
1278 | disables this option entirely. | 1215 | disables this option entirely. |
1279 | Note that | 1216 | Note that |
1280 | .Cm CheckHostIP | 1217 | .Cm CheckHostIP |
@@ -1319,7 +1256,7 @@ will pass a connected file descriptor back to | |||
1319 | .Xr ssh 1 | 1256 | .Xr ssh 1 |
1320 | instead of continuing to execute and pass data. | 1257 | instead of continuing to execute and pass data. |
1321 | The default is | 1258 | The default is |
1322 | .Dq no . | 1259 | .Cm no . |
1323 | .It Cm PubkeyAcceptedKeyTypes | 1260 | .It Cm PubkeyAcceptedKeyTypes |
1324 | Specifies the key types that will be used for public key authentication | 1261 | Specifies the key types that will be used for public key authentication |
1325 | as a comma-separated pattern list. | 1262 | as a comma-separated pattern list. |
@@ -1338,19 +1275,15 @@ ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | |||
1338 | ssh-ed25519,ssh-rsa | 1275 | ssh-ed25519,ssh-rsa |
1339 | .Ed | 1276 | .Ed |
1340 | .Pp | 1277 | .Pp |
1341 | The | 1278 | The list of available key types may also be obtained using |
1342 | .Fl Q | 1279 | .Qq ssh -Q key . |
1343 | option of | ||
1344 | .Xr ssh 1 | ||
1345 | may be used to list supported key types. | ||
1346 | .It Cm PubkeyAuthentication | 1280 | .It Cm PubkeyAuthentication |
1347 | Specifies whether to try public key authentication. | 1281 | Specifies whether to try public key authentication. |
1348 | The argument to this keyword must be | 1282 | The argument to this keyword must be |
1349 | .Dq yes | 1283 | .Cm yes |
1284 | (the default) | ||
1350 | or | 1285 | or |
1351 | .Dq no . | 1286 | .Cm no . |
1352 | The default is | ||
1353 | .Dq yes . | ||
1354 | .It Cm RekeyLimit | 1287 | .It Cm RekeyLimit |
1355 | Specifies the maximum amount of data that may be transmitted before the | 1288 | Specifies the maximum amount of data that may be transmitted before the |
1356 | session key is renegotiated, optionally followed a maximum amount of | 1289 | session key is renegotiated, optionally followed a maximum amount of |
@@ -1368,12 +1301,13 @@ and | |||
1368 | depending on the cipher. | 1301 | depending on the cipher. |
1369 | The optional second value is specified in seconds and may use any of the | 1302 | The optional second value is specified in seconds and may use any of the |
1370 | units documented in the | 1303 | units documented in the |
1371 | TIME FORMATS section of | 1304 | .Sx TIME FORMATS |
1305 | section of | ||
1372 | .Xr sshd_config 5 . | 1306 | .Xr sshd_config 5 . |
1373 | The default value for | 1307 | The default value for |
1374 | .Cm RekeyLimit | 1308 | .Cm RekeyLimit |
1375 | is | 1309 | is |
1376 | .Dq default none , | 1310 | .Cm default none , |
1377 | which means that rekeying is performed after the cipher's default amount | 1311 | which means that rekeying is performed after the cipher's default amount |
1378 | of data has been sent or received and no time based rekeying is done. | 1312 | of data has been sent or received and no time based rekeying is done. |
1379 | .It Cm RemoteForward | 1313 | .It Cm RemoteForward |
@@ -1393,8 +1327,7 @@ logging in as root on the remote machine. | |||
1393 | .Pp | 1327 | .Pp |
1394 | If the | 1328 | If the |
1395 | .Ar port | 1329 | .Ar port |
1396 | argument is | 1330 | argument is 0, |
1397 | .Ql 0 , | ||
1398 | the listen port will be dynamically allocated on the server and reported | 1331 | the listen port will be dynamically allocated on the server and reported |
1399 | to the client at run time. | 1332 | to the client at run time. |
1400 | .Pp | 1333 | .Pp |
@@ -1416,13 +1349,13 @@ option is enabled (see | |||
1416 | .It Cm RequestTTY | 1349 | .It Cm RequestTTY |
1417 | Specifies whether to request a pseudo-tty for the session. | 1350 | Specifies whether to request a pseudo-tty for the session. |
1418 | The argument may be one of: | 1351 | The argument may be one of: |
1419 | .Dq no | 1352 | .Cm no |
1420 | (never request a TTY), | 1353 | (never request a TTY), |
1421 | .Dq yes | 1354 | .Cm yes |
1422 | (always request a TTY when standard input is a TTY), | 1355 | (always request a TTY when standard input is a TTY), |
1423 | .Dq force | 1356 | .Cm force |
1424 | (always request a TTY) or | 1357 | (always request a TTY) or |
1425 | .Dq auto | 1358 | .Cm auto |
1426 | (request a TTY when opening a login session). | 1359 | (request a TTY when opening a login session). |
1427 | This option mirrors the | 1360 | This option mirrors the |
1428 | .Fl t | 1361 | .Fl t |
@@ -1444,25 +1377,23 @@ For more information on KRLs, see the KEY REVOCATION LISTS section in | |||
1444 | Specifies whether to try rhosts based authentication with RSA host | 1377 | Specifies whether to try rhosts based authentication with RSA host |
1445 | authentication. | 1378 | authentication. |
1446 | The argument must be | 1379 | The argument must be |
1447 | .Dq yes | 1380 | .Cm yes |
1448 | or | 1381 | or |
1449 | .Dq no . | 1382 | .Cm no |
1450 | The default is | 1383 | (the default). |
1451 | .Dq no . | ||
1452 | This option applies to protocol version 1 only and requires | 1384 | This option applies to protocol version 1 only and requires |
1453 | .Xr ssh 1 | 1385 | .Xr ssh 1 |
1454 | to be setuid root. | 1386 | to be setuid root. |
1455 | .It Cm RSAAuthentication | 1387 | .It Cm RSAAuthentication |
1456 | Specifies whether to try RSA authentication. | 1388 | Specifies whether to try RSA authentication. |
1457 | The argument to this keyword must be | 1389 | The argument to this keyword must be |
1458 | .Dq yes | 1390 | .Cm yes |
1391 | (the default) | ||
1459 | or | 1392 | or |
1460 | .Dq no . | 1393 | .Cm no . |
1461 | RSA authentication will only be | 1394 | RSA authentication will only be |
1462 | attempted if the identity file exists, or an authentication agent is | 1395 | attempted if the identity file exists, or an authentication agent is |
1463 | running. | 1396 | running. |
1464 | The default is | ||
1465 | .Dq yes . | ||
1466 | Note that this option applies to protocol version 1 only. | 1397 | Note that this option applies to protocol version 1 only. |
1467 | .It Cm SendEnv | 1398 | .It Cm SendEnv |
1468 | Specifies what variables from the local | 1399 | Specifies what variables from the local |
@@ -1545,14 +1476,13 @@ will be unable to forward the port to the Unix-domain socket file. | |||
1545 | This option is only used for port forwarding to a Unix-domain socket file. | 1476 | This option is only used for port forwarding to a Unix-domain socket file. |
1546 | .Pp | 1477 | .Pp |
1547 | The argument must be | 1478 | The argument must be |
1548 | .Dq yes | 1479 | .Cm yes |
1549 | or | 1480 | or |
1550 | .Dq no . | 1481 | .Cm no |
1551 | The default is | 1482 | (the default). |
1552 | .Dq no . | ||
1553 | .It Cm StrictHostKeyChecking | 1483 | .It Cm StrictHostKeyChecking |
1554 | If this flag is set to | 1484 | If this flag is set to |
1555 | .Dq yes , | 1485 | .Cm yes , |
1556 | .Xr ssh 1 | 1486 | .Xr ssh 1 |
1557 | will never automatically add host keys to the | 1487 | will never automatically add host keys to the |
1558 | .Pa ~/.ssh/known_hosts | 1488 | .Pa ~/.ssh/known_hosts |
@@ -1565,24 +1495,18 @@ frequently made. | |||
1565 | This option forces the user to manually | 1495 | This option forces the user to manually |
1566 | add all new hosts. | 1496 | add all new hosts. |
1567 | If this flag is set to | 1497 | If this flag is set to |
1568 | .Dq no , | 1498 | .Cm no , |
1569 | ssh will automatically add new host keys to the | 1499 | ssh will automatically add new host keys to the |
1570 | user known hosts files. | 1500 | user known hosts files. |
1571 | If this flag is set to | 1501 | If this flag is set to |
1572 | .Dq ask , | 1502 | .Cm ask |
1503 | (the default), | ||
1573 | new host keys | 1504 | new host keys |
1574 | will be added to the user known host files only after the user | 1505 | will be added to the user known host files only after the user |
1575 | has confirmed that is what they really want to do, and | 1506 | has confirmed that is what they really want to do, and |
1576 | ssh will refuse to connect to hosts whose host key has changed. | 1507 | ssh will refuse to connect to hosts whose host key has changed. |
1577 | The host keys of | 1508 | The host keys of |
1578 | known hosts will be verified automatically in all cases. | 1509 | known hosts will be verified automatically in all cases. |
1579 | The argument must be | ||
1580 | .Dq yes , | ||
1581 | .Dq no , | ||
1582 | or | ||
1583 | .Dq ask . | ||
1584 | The default is | ||
1585 | .Dq ask . | ||
1586 | .It Cm TCPKeepAlive | 1510 | .It Cm TCPKeepAlive |
1587 | Specifies whether the system should send TCP keepalive messages to the | 1511 | Specifies whether the system should send TCP keepalive messages to the |
1588 | other side. | 1512 | other side. |
@@ -1593,31 +1517,30 @@ connections will die if the route is down temporarily, and some people | |||
1593 | find it annoying. | 1517 | find it annoying. |
1594 | .Pp | 1518 | .Pp |
1595 | The default is | 1519 | The default is |
1596 | .Dq yes | 1520 | .Cm yes |
1597 | (to send TCP keepalive messages), and the client will notice | 1521 | (to send TCP keepalive messages), and the client will notice |
1598 | if the network goes down or the remote host dies. | 1522 | if the network goes down or the remote host dies. |
1599 | This is important in scripts, and many users want it too. | 1523 | This is important in scripts, and many users want it too. |
1600 | .Pp | 1524 | .Pp |
1601 | To disable TCP keepalive messages, the value should be set to | 1525 | To disable TCP keepalive messages, the value should be set to |
1602 | .Dq no . | 1526 | .Cm no . |
1603 | .It Cm Tunnel | 1527 | .It Cm Tunnel |
1604 | Request | 1528 | Request |
1605 | .Xr tun 4 | 1529 | .Xr tun 4 |
1606 | device forwarding between the client and the server. | 1530 | device forwarding between the client and the server. |
1607 | The argument must be | 1531 | The argument must be |
1608 | .Dq yes , | 1532 | .Cm yes , |
1609 | .Dq point-to-point | 1533 | .Cm point-to-point |
1610 | (layer 3), | 1534 | (layer 3), |
1611 | .Dq ethernet | 1535 | .Cm ethernet |
1612 | (layer 2), | 1536 | (layer 2), |
1613 | or | 1537 | or |
1614 | .Dq no . | 1538 | .Cm no |
1539 | (the default). | ||
1615 | Specifying | 1540 | Specifying |
1616 | .Dq yes | 1541 | .Cm yes |
1617 | requests the default tunnel mode, which is | 1542 | requests the default tunnel mode, which is |
1618 | .Dq point-to-point . | 1543 | .Cm point-to-point . |
1619 | The default is | ||
1620 | .Dq no . | ||
1621 | .It Cm TunnelDevice | 1544 | .It Cm TunnelDevice |
1622 | Specifies the | 1545 | Specifies the |
1623 | .Xr tun 4 | 1546 | .Xr tun 4 |
@@ -1631,14 +1554,14 @@ The argument must be | |||
1631 | .Ar local_tun Op : Ar remote_tun . | 1554 | .Ar local_tun Op : Ar remote_tun . |
1632 | .Sm on | 1555 | .Sm on |
1633 | The devices may be specified by numerical ID or the keyword | 1556 | The devices may be specified by numerical ID or the keyword |
1634 | .Dq any , | 1557 | .Cm any , |
1635 | which uses the next available tunnel device. | 1558 | which uses the next available tunnel device. |
1636 | If | 1559 | If |
1637 | .Ar remote_tun | 1560 | .Ar remote_tun |
1638 | is not specified, it defaults to | 1561 | is not specified, it defaults to |
1639 | .Dq any . | 1562 | .Cm any . |
1640 | The default is | 1563 | The default is |
1641 | .Dq any:any . | 1564 | .Cm any:any . |
1642 | .It Cm UpdateHostKeys | 1565 | .It Cm UpdateHostKeys |
1643 | Specifies whether | 1566 | Specifies whether |
1644 | .Xr ssh 1 | 1567 | .Xr ssh 1 |
@@ -1646,10 +1569,10 @@ should accept notifications of additional hostkeys from the server sent | |||
1646 | after authentication has completed and add them to | 1569 | after authentication has completed and add them to |
1647 | .Cm UserKnownHostsFile . | 1570 | .Cm UserKnownHostsFile . |
1648 | The argument must be | 1571 | The argument must be |
1649 | .Dq yes , | 1572 | .Cm yes , |
1650 | .Dq no | 1573 | .Cm no |
1651 | (the default) or | 1574 | (the default) or |
1652 | .Dq ask . | 1575 | .Cm ask . |
1653 | Enabling this option allows learning alternate hostkeys for a server | 1576 | Enabling this option allows learning alternate hostkeys for a server |
1654 | and supports graceful key rotation by allowing a server to send replacement | 1577 | and supports graceful key rotation by allowing a server to send replacement |
1655 | public keys before old ones are removed. | 1578 | public keys before old ones are removed. |
@@ -1658,7 +1581,7 @@ host was already trusted or explicitly accepted by the user. | |||
1658 | If | 1581 | If |
1659 | .Cm UpdateHostKeys | 1582 | .Cm UpdateHostKeys |
1660 | is set to | 1583 | is set to |
1661 | .Dq ask , | 1584 | .Cm ask , |
1662 | then the user is asked to confirm the modifications to the known_hosts file. | 1585 | then the user is asked to confirm the modifications to the known_hosts file. |
1663 | Confirmation is currently incompatible with | 1586 | Confirmation is currently incompatible with |
1664 | .Cm ControlPersist , | 1587 | .Cm ControlPersist , |
@@ -1667,22 +1590,21 @@ and will be disabled if it is enabled. | |||
1667 | Presently, only | 1590 | Presently, only |
1668 | .Xr sshd 8 | 1591 | .Xr sshd 8 |
1669 | from OpenSSH 6.8 and greater support the | 1592 | from OpenSSH 6.8 and greater support the |
1670 | .Dq hostkeys@openssh.com | 1593 | .Qq hostkeys@openssh.com |
1671 | protocol extension used to inform the client of all the server's hostkeys. | 1594 | protocol extension used to inform the client of all the server's hostkeys. |
1672 | .It Cm UsePrivilegedPort | 1595 | .It Cm UsePrivilegedPort |
1673 | Specifies whether to use a privileged port for outgoing connections. | 1596 | Specifies whether to use a privileged port for outgoing connections. |
1674 | The argument must be | 1597 | The argument must be |
1675 | .Dq yes | 1598 | .Cm yes |
1676 | or | 1599 | or |
1677 | .Dq no . | 1600 | .Cm no |
1678 | The default is | 1601 | (the default). |
1679 | .Dq no . | ||
1680 | If set to | 1602 | If set to |
1681 | .Dq yes , | 1603 | .Cm yes , |
1682 | .Xr ssh 1 | 1604 | .Xr ssh 1 |
1683 | must be setuid root. | 1605 | must be setuid root. |
1684 | Note that this option must be set to | 1606 | Note that this option must be set to |
1685 | .Dq yes | 1607 | .Cm yes |
1686 | for | 1608 | for |
1687 | .Cm RhostsRSAAuthentication | 1609 | .Cm RhostsRSAAuthentication |
1688 | with older servers. | 1610 | with older servers. |
@@ -1701,39 +1623,35 @@ The default is | |||
1701 | Specifies whether to verify the remote key using DNS and SSHFP resource | 1623 | Specifies whether to verify the remote key using DNS and SSHFP resource |
1702 | records. | 1624 | records. |
1703 | If this option is set to | 1625 | If this option is set to |
1704 | .Dq yes , | 1626 | .Cm yes , |
1705 | the client will implicitly trust keys that match a secure fingerprint | 1627 | the client will implicitly trust keys that match a secure fingerprint |
1706 | from DNS. | 1628 | from DNS. |
1707 | Insecure fingerprints will be handled as if this option was set to | 1629 | Insecure fingerprints will be handled as if this option was set to |
1708 | .Dq ask . | 1630 | .Cm ask . |
1709 | If this option is set to | 1631 | If this option is set to |
1710 | .Dq ask , | 1632 | .Cm ask , |
1711 | information on fingerprint match will be displayed, but the user will still | 1633 | information on fingerprint match will be displayed, but the user will still |
1712 | need to confirm new host keys according to the | 1634 | need to confirm new host keys according to the |
1713 | .Cm StrictHostKeyChecking | 1635 | .Cm StrictHostKeyChecking |
1714 | option. | 1636 | option. |
1715 | The argument must be | ||
1716 | .Dq yes , | ||
1717 | .Dq no , | ||
1718 | or | ||
1719 | .Dq ask . | ||
1720 | The default is | 1637 | The default is |
1721 | .Dq no . | 1638 | .Cm no . |
1722 | .Pp | 1639 | .Pp |
1723 | See also VERIFYING HOST KEYS in | 1640 | See also |
1641 | .Sx VERIFYING HOST KEYS | ||
1642 | in | ||
1724 | .Xr ssh 1 . | 1643 | .Xr ssh 1 . |
1725 | .It Cm VisualHostKey | 1644 | .It Cm VisualHostKey |
1726 | If this flag is set to | 1645 | If this flag is set to |
1727 | .Dq yes , | 1646 | .Cm yes , |
1728 | an ASCII art representation of the remote host key fingerprint is | 1647 | an ASCII art representation of the remote host key fingerprint is |
1729 | printed in addition to the fingerprint string at login and | 1648 | printed in addition to the fingerprint string at login and |
1730 | for unknown host keys. | 1649 | for unknown host keys. |
1731 | If this flag is set to | 1650 | If this flag is set to |
1732 | .Dq no , | 1651 | .Cm no |
1652 | (the default), | ||
1733 | no fingerprint strings are printed at login and | 1653 | no fingerprint strings are printed at login and |
1734 | only the fingerprint string will be printed for unknown host keys. | 1654 | only the fingerprint string will be printed for unknown host keys. |
1735 | The default is | ||
1736 | .Dq no . | ||
1737 | .It Cm XAuthLocation | 1655 | .It Cm XAuthLocation |
1738 | Specifies the full pathname of the | 1656 | Specifies the full pathname of the |
1739 | .Xr xauth 1 | 1657 | .Xr xauth 1 |
@@ -1751,7 +1669,7 @@ or | |||
1751 | .Sq ?\& | 1669 | .Sq ?\& |
1752 | (a wildcard that matches exactly one character). | 1670 | (a wildcard that matches exactly one character). |
1753 | For example, to specify a set of declarations for any host in the | 1671 | For example, to specify a set of declarations for any host in the |
1754 | .Dq .co.uk | 1672 | .Qq .co.uk |
1755 | set of domains, | 1673 | set of domains, |
1756 | the following pattern could be used: | 1674 | the following pattern could be used: |
1757 | .Pp | 1675 | .Pp |
@@ -1771,7 +1689,7 @@ by preceding them with an exclamation mark | |||
1771 | For example, | 1689 | For example, |
1772 | to allow a key to be used from anywhere within an organization | 1690 | to allow a key to be used from anywhere within an organization |
1773 | except from the | 1691 | except from the |
1774 | .Dq dialup | 1692 | .Qq dialup |
1775 | pool, | 1693 | pool, |
1776 | the following entry (in authorized_keys) could be used: | 1694 | the following entry (in authorized_keys) could be used: |
1777 | .Pp | 1695 | .Pp |
@@ -1846,11 +1764,15 @@ This file must be world-readable. | |||
1846 | .Sh SEE ALSO | 1764 | .Sh SEE ALSO |
1847 | .Xr ssh 1 | 1765 | .Xr ssh 1 |
1848 | .Sh AUTHORS | 1766 | .Sh AUTHORS |
1767 | .An -nosplit | ||
1849 | OpenSSH is a derivative of the original and free | 1768 | OpenSSH is a derivative of the original and free |
1850 | ssh 1.2.12 release by Tatu Ylonen. | 1769 | ssh 1.2.12 release by |
1851 | Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, | 1770 | .An Tatu Ylonen . |
1852 | Theo de Raadt and Dug Song | 1771 | .An Aaron Campbell , Bob Beck , Markus Friedl , |
1772 | .An Niels Provos , Theo de Raadt | ||
1773 | and | ||
1774 | .An Dug Song | ||
1853 | removed many bugs, re-added newer features and | 1775 | removed many bugs, re-added newer features and |
1854 | created OpenSSH. | 1776 | created OpenSSH. |
1855 | Markus Friedl contributed the support for SSH | 1777 | .An Markus Friedl |
1856 | protocol versions 1.5 and 2.0. | 1778 | contributed the support for SSH protocol versions 1.5 and 2.0. |