diff options
author | Richard Kettlewell <rjk@greenend.org.uk> | 2014-02-09 16:09:52 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-03-29 01:39:47 +0100 |
commit | 74415628b380db26961259a25dcc47c4f02e8703 (patch) | |
tree | 36abae92a97bfe47e4e5b075c83b004f72a513da /ssh_config.5 | |
parent | fb7c3c37876359b7a110e1386a6b7887cd2c8ca2 (diff) |
Various keepalive extensions
Add compatibility aliases for ProtocolKeepAlives and SetupTimeOut, supported
in previous versions of Debian's OpenSSH package but since superseded by
ServerAliveInterval. (We're probably stuck with this bit for
compatibility.)
In batch mode, default ServerAliveInterval to five minutes.
Adjust documentation to match and to give some more advice on use of
keepalives.
Author: Ian Jackson <ian@chiark.greenend.org.uk>
Author: Matthew Vernon <matthew@debian.org>
Author: Colin Watson <cjwatson@debian.org>
Last-Update: 2016-12-26
Patch-Name: keepalive-extensions.patch
Diffstat (limited to 'ssh_config.5')
-rw-r--r-- | ssh_config.5 | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5 index ec60273ea..e4eaa5ae0 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -250,8 +250,12 @@ Valid arguments are | |||
250 | If set to | 250 | If set to |
251 | .Cm yes , | 251 | .Cm yes , |
252 | passphrase/password querying will be disabled. | 252 | passphrase/password querying will be disabled. |
253 | In addition, the | ||
254 | .Cm ServerAliveInterval | ||
255 | option will be set to 300 seconds by default (Debian-specific). | ||
253 | This option is useful in scripts and other batch jobs where no user | 256 | This option is useful in scripts and other batch jobs where no user |
254 | is present to supply the password. | 257 | is present to supply the password, |
258 | and where it is desirable to detect a broken network swiftly. | ||
255 | The argument must be | 259 | The argument must be |
256 | .Cm yes | 260 | .Cm yes |
257 | or | 261 | or |
@@ -1509,7 +1513,14 @@ from the server, | |||
1509 | will send a message through the encrypted | 1513 | will send a message through the encrypted |
1510 | channel to request a response from the server. | 1514 | channel to request a response from the server. |
1511 | The default | 1515 | The default |
1512 | is 0, indicating that these messages will not be sent to the server. | 1516 | is 0, indicating that these messages will not be sent to the server, |
1517 | or 300 if the | ||
1518 | .Cm BatchMode | ||
1519 | option is set (Debian-specific). | ||
1520 | .Cm ProtocolKeepAlives | ||
1521 | and | ||
1522 | .Cm SetupTimeOut | ||
1523 | are Debian-specific compatibility aliases for this option. | ||
1513 | .It Cm StreamLocalBindMask | 1524 | .It Cm StreamLocalBindMask |
1514 | Sets the octal file creation mode mask | 1525 | Sets the octal file creation mode mask |
1515 | .Pq umask | 1526 | .Pq umask |
@@ -1568,6 +1579,12 @@ Specifies whether the system should send TCP keepalive messages to the | |||
1568 | other side. | 1579 | other side. |
1569 | If they are sent, death of the connection or crash of one | 1580 | If they are sent, death of the connection or crash of one |
1570 | of the machines will be properly noticed. | 1581 | of the machines will be properly noticed. |
1582 | This option only uses TCP keepalives (as opposed to using ssh level | ||
1583 | keepalives), so takes a long time to notice when the connection dies. | ||
1584 | As such, you probably want | ||
1585 | the | ||
1586 | .Cm ServerAliveInterval | ||
1587 | option as well. | ||
1571 | However, this means that | 1588 | However, this means that |
1572 | connections will die if the route is down temporarily, and some people | 1589 | connections will die if the route is down temporarily, and some people |
1573 | find it annoying. | 1590 | find it annoying. |