enable root ssh access during lxc creation (#765)

This commit is contained in:
tteckster 2022-11-23 12:34:11 -05:00 committed by GitHub
parent 9f192aeec2
commit b54ba602ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
113 changed files with 962 additions and 59 deletions

View file

@ -230,6 +230,12 @@ EOF
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg_ok "Customized Container"
fi
if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
fi
msg_info "Cleaning up"
apt-get autoremove >/dev/null