diff --git a/bootstrap.sh b/bootstrap.sh index 00f9588..027db51 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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..."