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:
parent
2e1db1e216
commit
f0f3a689e6
2 changed files with 5 additions and 1 deletions
|
@ -12,3 +12,7 @@ sshd_default_allowed_groups:
|
||||||
|
|
||||||
# Enable AllowUsers and AllowGroups options
|
# Enable AllowUsers and AllowGroups options
|
||||||
restrict_allow_users: True
|
restrict_allow_users: True
|
||||||
|
|
||||||
|
# Allow login with password?
|
||||||
|
sshd_password_authentication: no
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
# HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
|
# HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
|
||||||
|
|
||||||
# Client authentication
|
# Client authentication
|
||||||
PasswordAuthentication no
|
PasswordAuthentication {{ sshd_password_authentication }}
|
||||||
ChallengeResponseAuthentication no
|
ChallengeResponseAuthentication no
|
||||||
PubkeyAuthentication yes
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue