소스 검색

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
 }