mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
parent
1b198e12f6
commit
a063b63d1c
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue