Update sshd_config
without-password is a deprecated alias, use prohibit-password instead
This commit is contained in:
parent
b6da0d6f97
commit
5cb1537702
@ -201,7 +201,7 @@ function disable_ssh_password() {
|
||||
echo 'DebianBanner no' >> /etc/ssh/sshd_config
|
||||
else
|
||||
cat > /etc/ssh/sshd_config.d/disable_password.conf << EOF
|
||||
PermitRootLogin without-password
|
||||
PermitRootLogin prohibit-password
|
||||
PasswordAuthentication no
|
||||
EOF
|
||||
cat > /etc/ssh/sshd_config.d/hide_debian_banner.conf << EOF
|
||||
|
Loading…
Reference in New Issue
Block a user