Default sshd_config has again changed, update our live-config script accordingly

The default file in openssh-server 1:7.5p1-10 now has:
 PasswordAuthentication yes
 #PermitRootLogin prohibit-passwd
debian-cd 2017.2
Raphaël Hertzog 8 years ago
parent 0bf54092e6
commit 3c2b83a0c3

@ -1,7 +1,7 @@
#!/bin/sh
# Allow PasswordAuthentification in sshd config
sed -i -e 's|\(PasswordAuthentication\) no|\1 yes|' /etc/ssh/sshd_config
sed -i -e 's|#\?\(PasswordAuthentication\) no|\1 yes|' /etc/ssh/sshd_config
# Do not allow root login without password
sed -i -e 's|\(PermitRootLogin\) prohibit-password|\1 yes|' /etc/ssh/sshd_config
# Allow root login with password
sed -i -e 's|#\?\(PermitRootLogin\) prohibit-password|\1 yes|' /etc/ssh/sshd_config

Loading…
Cancel
Save