浏览代码

Update alpine-install.func

enable root SSH access
tteckster 2 年之前
父节点
当前提交
ab40267e90
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      misc/alpine-install.func

+ 1 - 0
misc/alpine-install.func

@@ -111,6 +111,7 @@ motd_ssh() {
   echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" >/etc/motd
   if [[ "${SSH_ROOT}" == "yes" ]]; then
     $STD rc-update add sshd
+    sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
     $STD /etc/init.d/sshd start
   fi
 }