Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
4eeee4415a
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      src/freedombone-utils-ssh

+ 2
- 0
src/freedombone-utils-ssh Parādīt failu

@@ -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