Update alpine-install.func

enable root SSH access
This commit is contained in:
tteckster 2023-03-25 20:21:12 -04:00 committed by GitHub
parent e2b999caa0
commit ab40267e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
}