root ssh access

This commit is contained in:
tteckster 2022-11-23 11:37:46 -05:00 committed by GitHub
parent 9f192aeec2
commit ce55f1cf86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 330 additions and 0 deletions

View file

@ -137,6 +137,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