From a1f962b9923002942fcb5cc066a5f1f72519dc68 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 26 Jun 2017 13:08:16 +0100 Subject: [PATCH] No empty ssh passowords --- src/freedombone-utils-ssh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-utils-ssh b/src/freedombone-utils-ssh index f41531dd..28691e39 100755 --- a/src/freedombone-utils-ssh +++ b/src/freedombone-utils-ssh @@ -44,6 +44,8 @@ function configure_ssh { sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config sed -i "s/#Port ${SSH_PORT}/Port ${SSH_PORT}/g" /etc/ssh/sshd_config + sed -i 's|#PermitEmptyPasswords.*|PermitEmptyPasswords no|g' /etc/ssh/sshd_config + sed -i 's|PermitEmptyPasswords.*|PermitEmptyPasswords no|g' /etc/ssh/sshd_config sed -i 's/PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config sed -i 's/#PermitRootLogin no/PermitRootLogin no/g' /etc/ssh/sshd_config sed -i 's/X11Forwarding.*/X11Forwarding no/g' /etc/ssh/sshd_config