fix: ssh authorized_keys fallback
This commit is contained in:
@@ -19,6 +19,11 @@ ChallengeResponseAuthentication no
|
||||
KerberosAuthentication no
|
||||
GSSAPIAuthentication no
|
||||
UsePAM yes
|
||||
{% if ssh_authorized_keys_fallback_enabled %}
|
||||
AuthorizedKeysFile .ssh/authorized_keys /etc/ssh/authorized_keys/%u
|
||||
{% else %}
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
{% endif %}
|
||||
|
||||
# Login timeout and grace period
|
||||
LoginGraceTime 30s
|
||||
@@ -62,9 +67,3 @@ Compression no
|
||||
{% if ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' %}
|
||||
UsePrivilegeSeparation sandbox
|
||||
{% endif %}
|
||||
|
||||
{% if ssh_authorized_keys_fallback_enabled %}
|
||||
AuthorizedKeysFile .ssh/authorized_keys /etc/ssh/authorized_keys/%u
|
||||
{% else %}
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user