Update bootstrap.sh

This commit is contained in:
2026-01-22 10:54:54 -05:00
parent 01da4c7456
commit b14f6618f1

View File

@@ -22,11 +22,11 @@ else
echo "PermitRootLogin yes" >> "$SSHD_CONFIG"
fi
# Ensure PasswordAuthentication no
# Ensure PasswordAuthentication yes
if grep -qE '^\s*PasswordAuthentication' "$SSHD_CONFIG"; then
sed -i 's/^\s*PasswordAuthentication.*/PasswordAuthentication no/' "$SSHD_CONFIG"
sed -i 's/^\s*PasswordAuthentication.*/PasswordAuthentication yes/' "$SSHD_CONFIG"
else
echo "PasswordAuthentication no" >> "$SSHD_CONFIG"
echo "PasswordAuthentication yes" >> "$SSHD_CONFIG"
fi
echo "Restarting SSH service..."