diff options
author | Richard Kettlewell <rjk@greenend.org.uk> | 2014-02-09 16:09:52 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-03-20 00:24:49 +0000 |
commit | 81540b7886fdc73c7be304706ea33d6d87b5fc81 (patch) | |
tree | 80ff174ba82d2546c55732b17253eb7c74a6f18d /ssh_config.5 | |
parent | 789d58ed3df120c7b80d07fb2d259c216194a29c (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: 2013-09-14
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 473971e63..3172fd441 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -205,8 +205,12 @@ Valid arguments are | |||
205 | If set to | 205 | If set to |
206 | .Dq yes , | 206 | .Dq yes , |
207 | passphrase/password querying will be disabled. | 207 | passphrase/password querying will be disabled. |
208 | In addition, the | ||
209 | .Cm ServerAliveInterval | ||
210 | option will be set to 300 seconds by default. | ||
208 | This option is useful in scripts and other batch jobs where no user | 211 | This option is useful in scripts and other batch jobs where no user |
209 | is present to supply the password. | 212 | is present to supply the password, |
213 | and where it is desirable to detect a broken network swiftly. | ||
210 | The argument must be | 214 | The argument must be |
211 | .Dq yes | 215 | .Dq yes |
212 | or | 216 | or |
@@ -1305,8 +1309,15 @@ from the server, | |||
1305 | will send a message through the encrypted | 1309 | will send a message through the encrypted |
1306 | channel to request a response from the server. | 1310 | channel to request a response from the server. |
1307 | The default | 1311 | The default |
1308 | is 0, indicating that these messages will not be sent to the server. | 1312 | is 0, indicating that these messages will not be sent to the server, |
1313 | or 300 if the | ||
1314 | .Cm BatchMode | ||
1315 | option is set. | ||
1309 | This option applies to protocol version 2 only. | 1316 | This option applies to protocol version 2 only. |
1317 | .Cm ProtocolKeepAlives | ||
1318 | and | ||
1319 | .Cm SetupTimeOut | ||
1320 | are Debian-specific compatibility aliases for this option. | ||
1310 | .It Cm StrictHostKeyChecking | 1321 | .It Cm StrictHostKeyChecking |
1311 | If this flag is set to | 1322 | If this flag is set to |
1312 | .Dq yes , | 1323 | .Dq yes , |
@@ -1345,6 +1356,12 @@ Specifies whether the system should send TCP keepalive messages to the | |||
1345 | other side. | 1356 | other side. |
1346 | If they are sent, death of the connection or crash of one | 1357 | If they are sent, death of the connection or crash of one |
1347 | of the machines will be properly noticed. | 1358 | of the machines will be properly noticed. |
1359 | This option only uses TCP keepalives (as opposed to using ssh level | ||
1360 | keepalives), so takes a long time to notice when the connection dies. | ||
1361 | As such, you probably want | ||
1362 | the | ||
1363 | .Cm ServerAliveInterval | ||
1364 | option as well. | ||
1348 | However, this means that | 1365 | However, this means that |
1349 | connections will die if the route is down temporarily, and some people | 1366 | connections will die if the route is down temporarily, and some people |
1350 | find it annoying. | 1367 | find it annoying. |