diff --git a/roles/basesecurity/tasks/main.yml b/roles/basesecurity/tasks/main.yml index be168f4..2db6b5b 100644 --- a/roles/basesecurity/tasks/main.yml +++ b/roles/basesecurity/tasks/main.yml @@ -35,7 +35,7 @@ - ["PermitRootLogin", "prohibit-password"] - ["AllowAgentForwarding", "no"] - ["X11Forwarding", "no"] - - ["TCPKeepAlive", "no"] + - ["TCPKeepAlive", "yes"] notify: Restart sshd service # See banned client with `fail2ban-client status sshd`