b5978: Append settings to sshd config to improve resilience

This commit is contained in:
Thomas Stokes
2024-03-13 09:19:45 +01:00
parent a80f9dfd03
commit cf2335943d
@@ -216,4 +216,10 @@ myorigin =\$myhostname.sapsailing.com
postmap hash:${password_file_location}
systemctl restart postfix
rm -f "${temp_mail_properties_location}"
}
setup_sshd_resilience() {
echo "ClientAliveInterval 3
ClientAliveCountMax 3
GatewayPorts yes" >> /etc/ssh/sshd_config
}