Sfoglia il codice sorgente

Update alpine-install.func

enable root SSH access
tteckster 2 anni fa
parent
commit
ab40267e90
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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
   echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" >/etc/motd
   if [[ "${SSH_ROOT}" == "yes" ]]; then
   if [[ "${SSH_ROOT}" == "yes" ]]; then
     $STD rc-update add sshd
     $STD rc-update add sshd
+    sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
     $STD /etc/init.d/sshd start
     $STD /etc/init.d/sshd start
   fi
   fi
 }
 }