I have experienced problems when I had too many public keys in my agent. It ran ...
kasperd @kasperd@westergaard.social
I have experienced problems when I had too many public keys in my agent. It ran out of attempts before reaching the correct public key. So it sounds totally plausible that under those circumstances password authentication would not work.
I think it would be nice if sshd could be configured to allow a larger number of public key authentication attempts than password attempts. A public key attempt should require much less CPU time on the server than a password attempt, and there isn’t the same risk of brute force attempts as with passwords. So I don’t see a need for the number of permitted authentication attempts being so low when using public keys.
But if the problem is that the client is presenting too many public keys, then a much better solution is to fix the public key configuration rather than enabling password authentication. The client can be configured to know which key to use for which server so it doesn’t have to try all of them.