From 4cdf8dfe718e8e0bc7e5e56d37dda417fb35bef9 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 1 Sep 2015 16:40:56 +0300 Subject: [PATCH] sshd_config: add ClientAliveCountMax ClientAliveInterval --- etc/ssh/sshd_config | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config index ba9fc8f9..066b5669 100755 --- a/etc/ssh/sshd_config +++ b/etc/ssh/sshd_config @@ -61,3 +61,10 @@ PrintMotd no # pam does that UsePrivilegeSeparation sandbox # Default for new installations. Banner /etc/issue.net + +# If the client doesn't reply to 3 "pings", connection is dead. +ClientAliveCountMax 3 + +# "ping" the client after 60 seconds if no data has has been received +# from it. +ClientAliveInterval 60