瀏覽代碼

Update alpine.sh

MoeClub 1 年之前
父節點
當前提交
4109d91d11
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      alpine.sh

+ 1 - 0
alpine.sh

@@ -8,6 +8,7 @@ echo "root:${PASS}" |chpasswd root
 sed -i "s/^#\?Port.*/Port $PORT/g" /etc/ssh/sshd_config;
 sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
 sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
+sed -i 's/^#\?KbdInteractiveAuthentication.*/KbdInteractiveAuthentication no/g' /etc/ssh/sshd_config;
 [ -d /etc/ssh/sshd_config.d ] && rm -rf /etc/ssh/sshd_config.d/*
 [ -e /etc/init.d/sshd ] && /etc/init.d/sshd restart