From 1b71f7a07fc4af245698c972a5a986dcf4723557 Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 12 Apr 2024 11:55:06 -0500 Subject: [PATCH] added line to remove sshd override --- ubuntu/ubuntu-essentials.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ubuntu/ubuntu-essentials.sh b/ubuntu/ubuntu-essentials.sh index f5e6ab7..683dd5a 100755 --- a/ubuntu/ubuntu-essentials.sh +++ b/ubuntu/ubuntu-essentials.sh @@ -242,6 +242,7 @@ if [ $isInFile -eq 0 ] 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 + rm /etc/ssh/sshd_config.d > /dev/null 2>&1 # fi fi