From: Simon Ruderich Date: Sun, 10 Mar 2013 14:18:26 +0000 (+0100) Subject: sshd_config: Add ClientAlive* settings. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=c1a3d00240d108fdaf6867cc3a257a4ff6a48834 sshd_config: Add ClientAlive* settings. --- 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