Explorar el Código

Missing modifiers

Bob Mottram hace 7 años
padre
commit
4bfd152772
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/freedombone-utils-ssh

+ 2
- 2
src/freedombone-utils-ssh Ver fichero

59
     if ! grep -q 'HostbasedAuthentication' /etc/ssh/sshd_config; then
59
     if ! grep -q 'HostbasedAuthentication' /etc/ssh/sshd_config; then
60
         echo 'HostbasedAuthentication no' >> /etc/ssh/sshd_config
60
         echo 'HostbasedAuthentication no' >> /etc/ssh/sshd_config
61
     fi
61
     fi
62
-    sed 's|#HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
63
-    sed 's|HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
62
+    sed -i 's|#HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
63
+    sed -i 's|HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
64
     sed -i 's|#PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
64
     sed -i 's|#PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
65
     sed -i 's|PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
65
     sed -i 's|PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
66
     sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
66
     sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config