Fix sshd configuration to enable password-based root logins

The old setting "without-password" has been replaced by
"prohibit-password" in the Debian package.
debian-cd 2016.2
Raphaël Hertzog 9 years ago
parent 518a4a2afa
commit 9ca9b4c92f

@ -4,4 +4,4 @@
sed -i -e 's|\(PasswordAuthentication\) no|\1 yes|' /etc/ssh/sshd_config
# Do not allow root login without password
sed -i -e 's|\(PermitRootLogin\) without-password|\1 yes|' /etc/ssh/sshd_config
sed -i -e 's|\(PermitRootLogin\) prohibit-password|\1 yes|' /etc/ssh/sshd_config

Loading…
Cancel
Save