From 9f192aeec213436e343b44f0c31a1b7fe30071fb Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 23 Nov 2022 10:04:35 -0500 Subject: [PATCH] Update debian-install.sh Testing Enable Root SSH Access --- setup/debian-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup/debian-install.sh b/setup/debian-install.sh index 0ff21992..96b5f984 100644 --- a/setup/debian-install.sh +++ b/setup/debian-install.sh @@ -42,7 +42,7 @@ function msg_error() { echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" } -msg_info "Setting up Container OS " +msg_info "Setting up Container OS" sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen locale-gen >/dev/null while [ "$(hostname -I)" = "" ]; do @@ -100,6 +100,12 @@ EOF systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') msg_ok "Customized Container" fi +if [[ "${SSH_ROOT}" == "yes" ]]; then + cat <>/etc/ssh/sshd_config +PermitRootLogin yes +EOF +systemctl restart sshd +fi msg_info "Cleaning up" apt-get autoremove >/dev/null