From c1a3d00240d108fdaf6867cc3a257a4ff6a48834 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 10 Mar 2013 15:18:26 +0100 Subject: [PATCH] sshd_config: Add ClientAlive* settings. --- sshd_config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sshd_config b/sshd_config index c9ee8fc..4f18dc0 100644 --- a/sshd_config +++ b/sshd_config @@ -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 -- 2.44.1