diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config index 0e0266db..380b1067 100644 --- a/etc/ssh/sshd_config +++ b/etc/ssh/sshd_config @@ -21,7 +21,7 @@ HostKey /etc/ssh/ssh_host_rsa_key # Uncomment one of the following depending on which OS ## Arch -Subsystem sftp /usr/lib/ssh/sftp-server +#Subsystem sftp /usr/lib/ssh/sftp-server ## Debian #Subsystem sftp /usr/lib/openssh/sftp-server @@ -61,3 +61,11 @@ PrintMotd no # pam does that UsePrivilegeSeparation sandbox # Default for new installations. Banner /etc/issue.net + +# If the client doesn't reply in "three" pings, connection is dead. +# Defaults to 3 anyway, but I add it here for clearity and +# in case it decides to change in the future. +ClientAliveCountMax 3 + +# "ping" the client every minute. +ClientAliveInterval 60