Browse Source

No empty ssh passowords

Bob Mottram 7 years ago
parent
commit
a1f962b992
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-utils-ssh

+ 2
- 0
src/freedombone-utils-ssh View File

@@ -44,6 +44,8 @@ function configure_ssh {
44 44
     sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
45 45
     sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config
46 46
     sed -i "s/#Port ${SSH_PORT}/Port ${SSH_PORT}/g" /etc/ssh/sshd_config
47
+    sed -i 's|#PermitEmptyPasswords.*|PermitEmptyPasswords no|g' /etc/ssh/sshd_config
48
+    sed -i 's|PermitEmptyPasswords.*|PermitEmptyPasswords no|g' /etc/ssh/sshd_config
47 49
     sed -i 's/PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config
48 50
     sed -i 's/#PermitRootLogin no/PermitRootLogin no/g' /etc/ssh/sshd_config
49 51
     sed -i 's/X11Forwarding.*/X11Forwarding no/g' /etc/ssh/sshd_config