setup-hub.sh: change password auth disable default to N

This commit is contained in:
Justin Oros
2026-04-19 20:58:50 -07:00
parent b0e63a2e01
commit 0af3c30f79

View File

@@ -161,8 +161,8 @@ else
fi fi
header "Password Authentication" header "Password Authentication"
read -rp "Disable password auth for $HUB_USER and use keys only? [Y/n]: " DISABLE_PASS read -rp "Disable password auth for $HUB_USER and use keys only? [y/N]: " DISABLE_PASS
DISABLE_PASS="${DISABLE_PASS:-y}" DISABLE_PASS="${DISABLE_PASS:-n}"
if [[ "${DISABLE_PASS,,}" == "y" ]]; then if [[ "${DISABLE_PASS,,}" == "y" ]]; then
if [ ! -s "$SSH_DIR/authorized_keys" ]; then if [ ! -s "$SSH_DIR/authorized_keys" ]; then
warn "No keys found in $SSH_DIR/authorized_keys — skipping password auth disable to avoid lockout." warn "No keys found in $SSH_DIR/authorized_keys — skipping password auth disable to avoid lockout."