fix(googleauth): make sure sshd allows KbdInteractiveAuthentication

This commit is contained in:
Pascal de Bruijn 2022-06-14 10:40:47 +02:00
parent be3dd4fbf6
commit 3fe875040d

View File

@ -73,4 +73,15 @@ users_googleauth_selinux_applied:
- name: {{ users.googleauth_dir }} - name: {{ users.googleauth_dir }}
{%- endif %} {%- endif %}
sshd:
service.running:
- watch:
- file: /etc/ssh/sshd_config
sshd_config:
file.replace:
- name: /etc/ssh/sshd_config
- pattern: '^(ChallengeResponseAuthentication|KbdInteractiveAuthentication).*'
- repl: '\1 yes'
{%- endif %} {%- endif %}