Fixing SSH 'Too Many Authentication Failures' by Limiting Which Keys Are Offered
An SSH client with several keys loaded in ssh-agent may offer them one after another, and the server can hit its failed-attempt limit before the intended key is tried. The resulting 'Too many authentication failures' error does not necessarily mean the correct key was rejected. The suggested fix is to restrict identities for a connection using options such as IdentitiesOnly=yes with a specific identity file, rather than changing server settings or clearing the agent. Verbose output (ssh -vvv) can show whether the intended key was offered, and a host-specific entry in ~/.ssh/config can make this setup persistent. The article advises against broad Host * rules, since they can affect other servers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in