From 372f665bdb1d557b3a98f890054191aada783209 Mon Sep 17 00:00:00 2001 From: Marcel Stangenberger Date: Fri, 1 Aug 2025 16:22:18 +0200 Subject: [PATCH] Disable SSHd changes for debugging --- post/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/post/run.sh b/post/run.sh index 4735205..93ff5ba 100644 --- a/post/run.sh +++ b/post/run.sh @@ -16,9 +16,9 @@ chmod 700 /home/sysadmin/.ssh curl -so /home/sysadmin/.ssh/authorized_keys $REPO/raw/branch/master/post/ansible.pub chown -R sysadmin:admins /home/sysadmin/.ssh -echo -e "${GREEN}Disable root user SSH access...${NOCOL}" -sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config -sed -i 's/PermitRootLogin without-password/PermitRootLogin no/' /etc/ssh/sshd_config +#echo -e "${GREEN}Disable root user SSH access...${NOCOL}" +#sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config +#sed -i 's/PermitRootLogin without-password/PermitRootLogin no/' /etc/ssh/sshd_config echo -e "${GREEN}Configuring default firewall...${NOCOL}" curl -so /etc/iptables/iptables.rules $REPO/raw/branch/master/post/iptables.rules