Browse Source

Missing modifiers

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

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

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