Parcourir la source

Ignore rhosts

Bob Mottram il y a 7 ans
Parent
révision
4eeee4415a
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2
    0
      src/freedombone-utils-ssh

+ 2
- 0
src/freedombone-utils-ssh Voir le fichier

@@ -40,6 +40,8 @@ function configure_ssh {
40 40
     if [[ $(is_completed $FUNCNAME) == "1" ]]; then
41 41
         return
42 42
     fi
43
+    sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
44
+    sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
43 45
     sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config
44 46
     sed -i "s/#Port ${SSH_PORT}/Port ${SSH_PORT}/g" /etc/ssh/sshd_config
45 47
     sed -i 's/PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config