ssh-agent (3.7.1p2) fails for more than 7 keys

Darren Tucker dtucker at
Wed Dec 3 09:51:02 EST 2003

Andreas Steinmetz wrote:
> I do have the following problem:
> When adding more than 7 keys to ssh-agent (openssh-3.7.1p2/Linux 2.4)
> only the first 7 keys work. All other keys fail when trying to set up a
> ssh connection with:
> Received disconnect from *.*.*.*: 2: Too many authentication failures
> for *****

sshd currently has a hard-coded limit of 6 authentication attempts before
disconnecting.  There is an open enhancement request (with patch) to make
this user-settable (MaxAuthTries):

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list