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 # by YunoHost
Protocol 2 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> # yunohost settings set security.ssh.port -v <port>
Port {{ port }} Port {{ port }}
@ -55,12 +55,12 @@ PermitEmptyPasswords no
ChallengeResponseAuthentication no ChallengeResponseAuthentication no
UsePAM yes 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 # yunohost settings set security.ssh.password_authentication -v no
{% if password_authentication == "True" %} {% if password_authentication == "False" %}
#PasswordAuthentication yes
{% else %}
PasswordAuthentication no PasswordAuthentication no
{% else %}
#PasswordAuthentication yes
{% endif %} {% endif %}
# Post-login stuff # Post-login stuff