Bohan Yang 5 年之前
父節點
當前提交
8f127bfbf5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      netboot.sh

+ 1 - 0
netboot.sh

@@ -350,6 +350,7 @@ EOF
             echo "d-i passwd/root-password-crypted password $password" | $save_preseed
         fi
     else
+        _late_command 'sed -ri "s/^#?PermitRootLogin .+/PermitRootLogin no/" /etc/ssh/sshd_config'
         $save_preseed << EOF
 d-i passwd/root-login boolean false
 d-i passwd/make-user boolean true