Add some SSH settings to fix the SSH Broken Pipe with Amazon Linux

This commit is contained in:
twangboy 2024-08-30 09:27:20 -06:00 committed by Daniel Wozniak
parent d3c0f996a4
commit 36c65391a1

View file

@ -1381,7 +1381,9 @@ def sshd_server(salt_factories, sshd_config_dir, salt_master, grains):
"X11DisplayOffset": "10",
"PrintMotd": "no",
"PrintLastLog": "yes",
"TCPKeepAlive": "yes",
# https://unix.stackexchange.com/a/616355
"ServerAliveInterval": "20",
"TCPKeepAlive": "no",
"AcceptEnv": "LANG LC_*",
"UsePAM": "yes",
}