1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sshd.git synced 2024-08-16 11:59:49 +02:00

add option to enable password based auth

This commit is contained in:
L3D 2019-04-08 19:34:58 +02:00
parent 2e1db1e216
commit f0f3a689e6
2 changed files with 5 additions and 1 deletions

View file

@ -12,3 +12,7 @@ sshd_default_allowed_groups:
# Enable AllowUsers and AllowGroups options
restrict_allow_users: True
# Allow login with password?
sshd_password_authentication: no

View file

@ -21,7 +21,7 @@ HostKey /etc/ssh/ssh_host_ed25519_key
# HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
# Client authentication
PasswordAuthentication no
PasswordAuthentication {{ sshd_password_authentication }}
ChallengeResponseAuthentication no
PubkeyAuthentication yes