diff options
author | Richard Kettlewell <rjk@greenend.org.uk> | 2014-02-09 16:09:52 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-03-21 12:06:15 +0000 |
commit | c7c5d5805bd2a58fcab69da87daa53259db06d81 (patch) | |
tree | 7ee9109abd84cd64bd296718c44e8e5f4a196b1c /ssh_config.5 | |
parent | ceebe313c4b094557bda974d274a6e7b5b33e3f9 (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: 2015-11-29
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 9060d5be2..bbf638b53 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -268,8 +268,12 @@ The default is | |||
268 | If set to | 268 | If set to |
269 | .Dq yes , | 269 | .Dq yes , |
270 | passphrase/password querying will be disabled. | 270 | passphrase/password querying will be disabled. |
271 | In addition, the | ||
272 | .Cm ServerAliveInterval | ||
273 | option will be set to 300 seconds by default. | ||
271 | This option is useful in scripts and other batch jobs where no user | 274 | This option is useful in scripts and other batch jobs where no user |
272 | is present to supply the password. | 275 | is present to supply the password, |
276 | and where it is desirable to detect a broken network swiftly. | ||
273 | The argument must be | 277 | The argument must be |
274 | .Dq yes | 278 | .Dq yes |
275 | or | 279 | or |
@@ -1551,7 +1555,14 @@ from the server, | |||
1551 | will send a message through the encrypted | 1555 | will send a message through the encrypted |
1552 | channel to request a response from the server. | 1556 | channel to request a response from the server. |
1553 | The default | 1557 | The default |
1554 | is 0, indicating that these messages will not be sent to the server. | 1558 | is 0, indicating that these messages will not be sent to the server, |
1559 | or 300 if the | ||
1560 | .Cm BatchMode | ||
1561 | option is set. | ||
1562 | .Cm ProtocolKeepAlives | ||
1563 | and | ||
1564 | .Cm SetupTimeOut | ||
1565 | are Debian-specific compatibility aliases for this option. | ||
1555 | .It Cm StreamLocalBindMask | 1566 | .It Cm StreamLocalBindMask |
1556 | Sets the octal file creation mode mask | 1567 | Sets the octal file creation mode mask |
1557 | .Pq umask | 1568 | .Pq umask |
@@ -1617,6 +1628,12 @@ Specifies whether the system should send TCP keepalive messages to the | |||
1617 | other side. | 1628 | other side. |
1618 | If they are sent, death of the connection or crash of one | 1629 | If they are sent, death of the connection or crash of one |
1619 | of the machines will be properly noticed. | 1630 | of the machines will be properly noticed. |
1631 | This option only uses TCP keepalives (as opposed to using ssh level | ||
1632 | keepalives), so takes a long time to notice when the connection dies. | ||
1633 | As such, you probably want | ||
1634 | the | ||
1635 | .Cm ServerAliveInterval | ||
1636 | option as well. | ||
1620 | However, this means that | 1637 | However, this means that |
1621 | connections will die if the route is down temporarily, and some people | 1638 | connections will die if the route is down temporarily, and some people |
1622 | find it annoying. | 1639 | find it annoying. |