Files
Ansible-Minecraft-Server/roles/01-server_hardening/templates/sshd_config.j2
hcornet 8f0877cd53
Some checks failed
Ansible Minecraft CI/CD / Ansible Lint (push) Successful in 8s
Ansible Minecraft CI/CD / Syntax Check (push) Failing after 7s
Ansible Minecraft CI/CD / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD / Deploy to Production (push) Has been skipped
new version
2025-08-27 15:11:08 +02:00

21 lines
512 B
Django/Jinja

# Configuration SSH sécurisée générée par Ansible
Port {{ ssh_port }}
Protocol 2
# Authentification
PermitRootLogin {{ ssh_permit_root_login }}
PasswordAuthentication {{ ssh_password_authentication }}
MaxAuthTries {{ ssh_max_auth_tries }}
PubkeyAuthentication yes
# Sessions
ClientAliveInterval {{ ssh_client_alive_interval }}
ClientAliveCountMax {{ ssh_client_alive_count_max }}
# Sécurité
X11Forwarding no
UsePAM yes
UseDNS no
# Utilisateurs autorisés
AllowUsers {{ allowed_ssh_users | join(' ') }}