This commit is contained in:
2023-08-03 14:29:11 +02:00
parent b551e937e9
commit 4a3e23adac
5 changed files with 63 additions and 3 deletions

View File

@ -147,9 +147,15 @@ PasswordAuthentication {{ sshd_password_authentication }}
# The default is “no”.
PermitEmptyPasswords no
{% if (ansible_facts['distribution'] == "Debian") and (ansible_facts['distribution_major_version']|int > 11) %}
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
KbdInteractiveAuthentication no
{% else %}
# Specifies whether challenge-response authentication is allowed (e.g. via PAM).
# The default is “yes”.
ChallengeResponseAuthentication no
{% endif %}
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes