summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.547
1 files changed, 43 insertions, 4 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index b35753307..9c277a66f 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -127,8 +127,15 @@ Valid arguments are
127If set to 127If set to
128.Dq yes , 128.Dq yes ,
129passphrase/password querying will be disabled. 129passphrase/password querying will be disabled.
130In addition, the
131.Cm ServerAliveInterval
132and
133.Cm SetupTimeOut
134options will both be set to 300 seconds by default.
130This option is useful in scripts and other batch jobs where no user 135This option is useful in scripts and other batch jobs where no user
131is present to supply the password. 136is present to supply the password,
137and where it is desirable to detect a
138broken network swiftly.
132The argument must be 139The argument must be
133.Dq yes 140.Dq yes
134or 141or
@@ -371,7 +378,8 @@ token used for the session will be set to expire after 20 minutes.
371Remote clients will be refused access after this time. 378Remote clients will be refused access after this time.
372.Pp 379.Pp
373The default is 380The default is
374.Dq no . 381.Dq yes
382(Debian-specific).
375.Pp 383.Pp
376See the X11 SECURITY extension specification for full details on 384See the X11 SECURITY extension specification for full details on
377the restrictions imposed on untrusted clients. 385the restrictions imposed on untrusted clients.
@@ -710,8 +718,12 @@ from the server,
710will send a message through the encrypted 718will send a message through the encrypted
711channel to request a response from the server. 719channel to request a response from the server.
712The default 720The default
713is 0, indicating that these messages will not be sent to the server. 721is 0, indicating that these messages will not be sent to the server,
714This option applies to protocol version 2 only. 722or 300 if the
723.Cm BatchMode
724option is set.
725.Cm ProtocolKeepAlives
726is a Debian-specific compatibility alias for this option.
715.It Cm ServerAliveCountMax 727.It Cm ServerAliveCountMax
716Sets the number of server alive messages (see above) which may be 728Sets the number of server alive messages (see above) which may be
717sent without 729sent without
@@ -739,6 +751,27 @@ If, for example,
739.Cm ServerAliveCountMax 751.Cm ServerAliveCountMax
740is left at the default, if the server becomes unresponsive ssh 752is left at the default, if the server becomes unresponsive ssh
741will disconnect after approximately 45 seconds. 753will disconnect after approximately 45 seconds.
754This option works when using protocol version 2 only; in protocol version
7551 there is no mechanism to request a response from the server to the
756server alive messages, so disconnection is the responsibility of the TCP
757stack.
758.It Cm SetupTimeOut
759Normally,
760.Nm ssh
761blocks indefinitely whilst waiting to receive the ssh banner and other
762setup protocol from the server, during the session setup.
763This can cause
764.Nm ssh
765to hang under certain circumstances.
766If this option is set,
767.Nm ssh
768will give up if no data from the server is received for the specified
769number of seconds.
770The argument must be an integer.
771The default is 0 (disabled), or 300 if
772.Cm BatchMode
773is set.
774This is a Debian-specific option.
742.It Cm SmartcardDevice 775.It Cm SmartcardDevice
743Specifies which smartcard device to use. 776Specifies which smartcard device to use.
744The argument to this keyword is the device 777The argument to this keyword is the device
@@ -786,6 +819,12 @@ Specifies whether the system should send TCP keepalive messages to the
786other side. 819other side.
787If they are sent, death of the connection or crash of one 820If they are sent, death of the connection or crash of one
788of the machines will be properly noticed. 821of the machines will be properly noticed.
822This option only uses TCP keepalives (as opposed to using ssh level
823keepalives), so takes a long time to notice when the connection dies.
824As such, you probably want
825the
826.Cm ServerAliveInterval
827option as well.
789However, this means that 828However, this means that
790connections will die if the route is down temporarily, and some people 829connections will die if the route is down temporarily, and some people
791find it annoying. 830find it annoying.