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>2019-06-05 13:11:52 +0100
commit4d8dd12bab7bbc954815d7953a0c86ce1687bd34 (patch)
tree42aa35bfed4031c8b4c5cdd8d8a37665031216ae /ssh_config.5
parent0138f331a73d692f4543477ce7f64f9ede7d6b08 (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: 2018-10-19 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 c3c8b274a..250c92d04 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -265,8 +265,12 @@ Valid arguments are
265If set to 265If set to
266.Cm yes , 266.Cm yes ,
267passphrase/password querying will be disabled. 267passphrase/password querying will be disabled.
268In addition, the
269.Cm ServerAliveInterval
270option will be set to 300 seconds by default (Debian-specific).
268This option is useful in scripts and other batch jobs where no user 271This option is useful in scripts and other batch jobs where no user
269is present to supply the password. 272is present to supply the password,
273and where it is desirable to detect a broken network swiftly.
270The argument must be 274The argument must be
271.Cm yes 275.Cm yes
272or 276or
@@ -1535,7 +1539,14 @@ from the server,
1535will send a message through the encrypted 1539will send a message through the encrypted
1536channel to request a response from the server. 1540channel to request a response from the server.
1537The default 1541The default
1538is 0, indicating that these messages will not be sent to the server. 1542is 0, indicating that these messages will not be sent to the server,
1543or 300 if the
1544.Cm BatchMode
1545option is set (Debian-specific).
1546.Cm ProtocolKeepAlives
1547and
1548.Cm SetupTimeOut
1549are Debian-specific compatibility aliases for this option.
1539.It Cm SetEnv 1550.It Cm SetEnv
1540Directly specify one or more environment variables and their contents to 1551Directly specify one or more environment variables and their contents to
1541be sent to the server. 1552be sent to the server.
@@ -1615,6 +1626,12 @@ Specifies whether the system should send TCP keepalive messages to the
1615other side. 1626other side.
1616If they are sent, death of the connection or crash of one 1627If they are sent, death of the connection or crash of one
1617of the machines will be properly noticed. 1628of the machines will be properly noticed.
1629This option only uses TCP keepalives (as opposed to using ssh level
1630keepalives), so takes a long time to notice when the connection dies.
1631As such, you probably want
1632the
1633.Cm ServerAliveInterval
1634option as well.
1618However, this means that 1635However, this means that
1619connections will die if the route is down temporarily, and some people 1636connections will die if the route is down temporarily, and some people
1620find it annoying. 1637find it annoying.