28 lines
598 B
Django/Jinja
28 lines
598 B
Django/Jinja
{% if empty_auth_used %}
|
|
PermitEmptyPasswords yes
|
|
{% else %}
|
|
PermitEmptyPasswords no
|
|
{% endif %}
|
|
{% if pass_auth_used %}
|
|
PasswordAuthentication yes
|
|
{% else %}
|
|
PasswordAuthentication no
|
|
{% endif %}
|
|
{% if kbd_auth_used is not None %}
|
|
{% if kbd_auth_used %}
|
|
KbdInteractiveAuthentication yes
|
|
{% else %}
|
|
KbdInteractiveAuthentication no # enable if implementing TOTP 2FA
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if pam_auth_used %}
|
|
UsePAM yes
|
|
{% else %}
|
|
UsePAM no # enable if implementing TOTP 2FA
|
|
{% endif %}
|
|
{% if key_auth_used %}
|
|
PubkeyAuthentication yes
|
|
{% else %}
|
|
PubkeyAuthentication no
|
|
{% endif %}
|
|
PrintMotd yes |