From f0f6b9d99314de2cab129a35f1d442f74fabd1cd Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 10 Feb 2023 11:19:56 -0500 Subject: [PATCH] sshd: switch to SSH protocol keep alive --- sshd_config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sshd_config b/sshd_config index 7a01b2e..33b7890 100644 --- a/sshd_config +++ b/sshd_config @@ -95,11 +95,11 @@ AllowAgentForwarding no #PermitTTY yes PrintMotd no #PrintLastLog yes -#TCPKeepAlive yes +TCPKeepAlive no #PermitUserEnvironment no #Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 +ClientAliveInterval 60 +ClientAliveCountMax 10 #UseDNS no #PidFile /run/sshd.pid PerSourceMaxStartups 1