diff options
Diffstat (limited to 'ssh_config.5')
-rw-r--r-- | ssh_config.5 | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5 index 210da059b..25485f3da 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -127,8 +127,15 @@ Valid arguments are | |||
127 | If set to | 127 | If set to |
128 | .Dq yes , | 128 | .Dq yes , |
129 | passphrase/password querying will be disabled. | 129 | passphrase/password querying will be disabled. |
130 | In addition, the | ||
131 | .Cm ServerAliveInterval | ||
132 | and | ||
133 | .Cm SetupTimeOut | ||
134 | options will both be set to 300 seconds by default. | ||
130 | This option is useful in scripts and other batch jobs where no user | 135 | This option is useful in scripts and other batch jobs where no user |
131 | is present to supply the password. | 136 | is present to supply the password, |
137 | and where it is desirable to detect a | ||
138 | broken network swiftly. | ||
132 | The argument must be | 139 | The argument must be |
133 | .Dq yes | 140 | .Dq yes |
134 | or | 141 | or |
@@ -559,7 +566,10 @@ from the server, | |||
559 | will send a message through the encrypted | 566 | will send a message through the encrypted |
560 | channel to request a response from the server. | 567 | channel to request a response from the server. |
561 | The default | 568 | The default |
562 | is 0, indicating that these messages will not be sent to the server. | 569 | is 0, indicating that these messages will not be sent to the server, |
570 | or 300 if the | ||
571 | .Cm BatchMode | ||
572 | option is set. | ||
563 | This option applies to protocol version 2 only. | 573 | This option applies to protocol version 2 only. |
564 | .It Cm ServerAliveCountMax | 574 | .It Cm ServerAliveCountMax |
565 | Sets the number of server alive messages (see above) which may be | 575 | Sets the number of server alive messages (see above) which may be |
@@ -588,6 +598,22 @@ If, for example, | |||
588 | .Cm ServerAliveCountMax | 598 | .Cm ServerAliveCountMax |
589 | is left at the default, if the server becomes unresponsive ssh | 599 | is left at the default, if the server becomes unresponsive ssh |
590 | will disconnect after approximately 45 seconds. | 600 | will disconnect after approximately 45 seconds. |
601 | .It Cm SetupTimeOut | ||
602 | Normally, | ||
603 | .Nm ssh | ||
604 | blocks indefinitely whilst waiting to receive the ssh banner and other | ||
605 | setup protocol from the server, during the session setup. | ||
606 | This can cause | ||
607 | .Nm ssh | ||
608 | to hang under certain circumstances. | ||
609 | If this option is set, | ||
610 | .Nm ssh | ||
611 | will give up if no data from the server is received for the specified | ||
612 | number of seconds. | ||
613 | The argument must be an integer. | ||
614 | The default is 0 (disabled), or 300 if | ||
615 | .Cm BatchMode | ||
616 | is set. | ||
591 | .It Cm SmartcardDevice | 617 | .It Cm SmartcardDevice |
592 | Specifies which smartcard device to use. | 618 | Specifies which smartcard device to use. |
593 | The argument to this keyword is the device | 619 | The argument to this keyword is the device |
@@ -635,6 +661,12 @@ Specifies whether the system should send TCP keepalive messages to the | |||
635 | other side. | 661 | other side. |
636 | If they are sent, death of the connection or crash of one | 662 | If they are sent, death of the connection or crash of one |
637 | of the machines will be properly noticed. | 663 | of the machines will be properly noticed. |
664 | This option only uses TCP keepalives (as opposed to using ssh level | ||
665 | keepalives), so takes a long time to notice when the connection dies. | ||
666 | As such, you probably want | ||
667 | the | ||
668 | .Cm ServerAliveInterval | ||
669 | option as well. | ||
638 | However, this means that | 670 | However, this means that |
639 | connections will die if the route is down temporarily, and some people | 671 | connections will die if the route is down temporarily, and some people |
640 | find it annoying. | 672 | find it annoying. |