From b56cd464eb56b837a5a9766158a4879696a6f537 Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 22 Dec 2023 20:11:54 -0600 Subject: [PATCH] testing --- debian/debian-configure-sshd.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/debian-configure-sshd.sh b/debian/debian-configure-sshd.sh index 2614200..2af0549 100644 --- a/debian/debian-configure-sshd.sh +++ b/debian/debian-configure-sshd.sh @@ -24,13 +24,13 @@ fi isInFile=$(cat /etc/hostname | grep -c "proxmox") if [ $isInFile -eq 0 ] then - isInFile=$(cat /etc/ssh/sshd_config | grep -c "#PasswordAuthentication no") - if [ $isInFile -eq 0 ] - then +# isInFile=$(cat /etc/ssh/sshd_config | grep -c "#PasswordAuthentication no") +# if [ $isInFile -eq 0 ] +# then sed -i 's/#PasswordAuthentication no/PasswordAuthentication no/g' /etc/ssh/sshd_config sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config - fi +# fi fi