From a7db4b3dea0a3cfc6a207c058ab502fcc11b035c Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Wed, 21 Jan 2026 18:19:27 -0500 Subject: [PATCH] Update bootstrap.sh --- bootstrap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 027db51..00f9588 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -22,11 +22,11 @@ else echo "PermitRootLogin yes" >> "$SSHD_CONFIG" fi -# Ensure PasswordAuthentication yes +# Ensure PasswordAuthentication no if grep -qE '^\s*PasswordAuthentication' "$SSHD_CONFIG"; then - sed -i 's/^\s*PasswordAuthentication.*/PasswordAuthentication yes/' "$SSHD_CONFIG" + sed -i 's/^\s*PasswordAuthentication.*/PasswordAuthentication no/' "$SSHD_CONFIG" else - echo "PasswordAuthentication yes" >> "$SSHD_CONFIG" + echo "PasswordAuthentication no" >> "$SSHD_CONFIG" fi echo "Restarting SSH service..."