浏览代码

Missing modifiers

Bob Mottram 7 年前
父节点
当前提交
4bfd152772
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-utils-ssh

+ 2
- 2
src/freedombone-utils-ssh 查看文件

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