This repository has been archived on 2026-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
Set-OPS/roles/ssh_hardening/templates/20-setops-hardening.conf.j2

28 lines
854 B
Text
Raw Normal View History

2026-06-20 15:17:46 -04:00
# Managed by Ansible — Set-OPS
Port {{ ssh_hardening_port }}
PermitRootLogin {{ ssh_hardening_permit_root_login }}
PubkeyAuthentication {{ ssh_hardening_pubkey_authentication }}
PasswordAuthentication {{ ssh_hardening_password_authentication }}
AuthenticationMethods publickey
2026-06-20 15:17:46 -04:00
KbdInteractiveAuthentication no
ChallengeResponseAuthentication no
2026-06-20 15:17:46 -04:00
PermitEmptyPasswords no
HostbasedAuthentication no
IgnoreRhosts yes
2026-06-20 15:17:46 -04:00
X11Forwarding no
AllowTcpForwarding no
AllowAgentForwarding no
AllowStreamLocalForwarding no
PermitTunnel no
GatewayPorts no
PermitUserEnvironment no
PermitTTY yes
TCPKeepAlive no
ClientAliveInterval {{ ssh_hardening_client_alive_interval }}
ClientAliveCountMax {{ ssh_hardening_client_alive_count_max }}
MaxAuthTries {{ ssh_hardening_max_auth_tries }}
LoginGraceTime {{ ssh_hardening_login_grace_time }}
MaxSessions 2
MaxStartups 5:30:20