summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
authorRichard Kettlewell <rjk@greenend.org.uk>2014-02-09 16:09:52 +0000
committerColin Watson <cjwatson@debian.org>2016-01-04 13:43:52 +0000
commitdd6040ff883e51af62dcbb9594c65b27b925c40b (patch)
treee10ce51a89e148479ba5380cad09f33671b4af78 /ssh_config.5
parent1fd91310e580ae1723fc250ce77710f97e37ad15 (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.521
1 files changed, 19 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index cac8cdaa7..78e918a0e 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -233,8 +233,12 @@ Valid arguments are
233If set to 233If set to
234.Dq yes , 234.Dq yes ,
235passphrase/password querying will be disabled. 235passphrase/password querying will be disabled.
236In addition, the
237.Cm ServerAliveInterval
238option will be set to 300 seconds by default.
236This option is useful in scripts and other batch jobs where no user 239This option is useful in scripts and other batch jobs where no user
237is present to supply the password. 240is present to supply the password,
241and where it is desirable to detect a broken network swiftly.
238The argument must be 242The argument must be
239.Dq yes 243.Dq yes
240or 244or
@@ -1476,8 +1480,15 @@ from the server,
1476will send a message through the encrypted 1480will send a message through the encrypted
1477channel to request a response from the server. 1481channel to request a response from the server.
1478The default 1482The default
1479is 0, indicating that these messages will not be sent to the server. 1483is 0, indicating that these messages will not be sent to the server,
1484or 300 if the
1485.Cm BatchMode
1486option is set.
1480This option applies to protocol version 2 only. 1487This option applies to protocol version 2 only.
1488.Cm ProtocolKeepAlives
1489and
1490.Cm SetupTimeOut
1491are Debian-specific compatibility aliases for this option.
1481.It Cm StreamLocalBindMask 1492.It Cm StreamLocalBindMask
1482Sets the octal file creation mode mask 1493Sets the octal file creation mode mask
1483.Pq umask 1494.Pq umask
@@ -1543,6 +1554,12 @@ Specifies whether the system should send TCP keepalive messages to the
1543other side. 1554other side.
1544If they are sent, death of the connection or crash of one 1555If they are sent, death of the connection or crash of one
1545of the machines will be properly noticed. 1556of the machines will be properly noticed.
1557This option only uses TCP keepalives (as opposed to using ssh level
1558keepalives), so takes a long time to notice when the connection dies.
1559As such, you probably want
1560the
1561.Cm ServerAliveInterval
1562option as well.
1546However, this means that 1563However, this means that
1547connections will die if the route is down temporarily, and some people 1564connections will die if the route is down temporarily, and some people
1548find it annoying. 1565find it annoying.