]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - sshd_config
sshd_config: Add ClientAlive* settings.
[config/dotfiles.git] / sshd_config
index c9ee8fc6d11355c9f377734e165ef621de76c375..4f18dc0e0463b868913ae4bc6189492527030293 100644 (file)
@@ -55,6 +55,15 @@ AcceptEnv
 # authentications (default).
 PermitUserEnvironment no
 
+# Send a message after the given seconds of inactivity through the encrypted
+# channel. Used to detect stale connections more quickly. Not necessary on all
+# servers, therefore deactivated here.
+#ClientAliveInterval 60
+# Disconnect the client if more than max count alive messages were lost
+# (default). With the setting above this detects a broken connection after 3
+# minutes.
+ClientAliveCountMax 3
+
 # Enable sftp (and sshfs) usage.
 Subsystem sftp internal-sftp