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>2020-02-21 12:06:03 +0000
commit3558be2914c0127489faae40ce2eae66142c3287 (patch)
tree25a77cf5d70b22f2ac271625b93c2872a14cf7b1 /ssh_config.5
parent11d571f137c76d8c2e38b1c1a537b04cc279f8e3 (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: 2020-02-21 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 3f4906972..3079db19b 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -266,9 +266,13 @@ If set to
266.Cm yes , 266.Cm yes ,
267user interaction such as password prompts and host key confirmation requests 267user interaction such as password prompts and host key confirmation requests
268will be disabled. 268will be disabled.
269In addition, the
270.Cm ServerAliveInterval
271option will be set to 300 seconds by default (Debian-specific).
269This option is useful in scripts and other batch jobs where no user 272This option is useful in scripts and other batch jobs where no user
270is present to interact with 273is present to interact with
271.Xr ssh 1 . 274.Xr ssh 1 ,
275and where it is desirable to detect a broken network swiftly.
272The argument must be 276The argument must be
273.Cm yes 277.Cm yes
274or 278or
@@ -1593,7 +1597,14 @@ from the server,
1593will send a message through the encrypted 1597will send a message through the encrypted
1594channel to request a response from the server. 1598channel to request a response from the server.
1595The default 1599The default
1596is 0, indicating that these messages will not be sent to the server. 1600is 0, indicating that these messages will not be sent to the server,
1601or 300 if the
1602.Cm BatchMode
1603option is set (Debian-specific).
1604.Cm ProtocolKeepAlives
1605and
1606.Cm SetupTimeOut
1607are Debian-specific compatibility aliases for this option.
1597.It Cm SetEnv 1608.It Cm SetEnv
1598Directly specify one or more environment variables and their contents to 1609Directly specify one or more environment variables and their contents to
1599be sent to the server. 1610be sent to the server.
@@ -1673,6 +1684,12 @@ Specifies whether the system should send TCP keepalive messages to the
1673other side. 1684other side.
1674If they are sent, death of the connection or crash of one 1685If they are sent, death of the connection or crash of one
1675of the machines will be properly noticed. 1686of the machines will be properly noticed.
1687This option only uses TCP keepalives (as opposed to using ssh level
1688keepalives), so takes a long time to notice when the connection dies.
1689As such, you probably want
1690the
1691.Cm ServerAliveInterval
1692option as well.
1676However, this means that 1693However, this means that
1677connections will die if the route is down temporarily, and some people 1694connections will die if the route is down temporarily, and some people
1678find it annoying. 1695find it annoying.