21 lines
512 B
Django/Jinja
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(' ') }} |