'Server refused our key' error when Pageant offers a world‑readable private key
25.5K reputation · 05 Aug 2026, 05:12 UTC
Goal: Configure PuTTY to stop prompting for a password after a defined number of failed attempts when the remote account’s password has expired, or to automatically try an alternative authentication method instead of repeating the prompt indefinitely.
Constraint: PuTTY’s current password‑authentication loop has no built‑in retry limit or fallback mechanism, and the user must cancel the connection manually. It is unclear whether existing options such as authentication method ordering or Pageant settings can achieve this behavior, or if it requires a new feature.
Question: Is there a PuTTY configuration option to set a maximum number of password authentication attempts? Can PuTTY be instructed to fall back to public‑key authentication after a certain number of failed password tries? Are there any documented work‑arounds or planned changes to address this indefinite prompting?