ssh config : Invert the password_authentication value check to be more resilient in case something goes wrong while fetching / parsing the value

This commit is contained in:
Alexandre Aubin 2021-12-27 15:35:02 +01:00 committed by GitHub
parent 1b198e12f6
commit a063b63d1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
# by YunoHost
Protocol 2
# PLEASE: to change ssh port properly in YunoHost, use this command
# PLEASE: if you wish to change the ssh port properly in YunoHost, use this command:
# yunohost settings set security.ssh.port -v <port>
Port {{ port }}
@ -55,12 +55,12 @@ PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
# PLEASE: to force everybody to authenticate using ssh keys, run this command:
# PLEASE: if you wish to force everybody to authenticate using ssh keys, run this command:
# yunohost settings set security.ssh.password_authentication -v no
{% if password_authentication == "True" %}
#PasswordAuthentication yes
{% else %}
{% if password_authentication == "False" %}
PasswordAuthentication no
{% else %}
#PasswordAuthentication yes
{% endif %}
# Post-login stuff