The userauth_none function, which is called at the start of every SSH2 connection, attempts to authenticate the user by calling auth_password with an empty password. In the case where the user's password is not empty, which will be the majority of the time, this can create a noticable delay, since many systems are set up to insert a pause after a failed authentication attempt in order to prevent brute-force attacks. The attached patch will suppress the auth_password call in userauth_none if the PermitEmptyPasswords option is turned off. On my system (Debian GNU/Linux sid), this eliminates a two-second delay in logging in.
Created attachment 351 [details] Patch to fix the issue Tested against 3.6.1p2, also applies to -current.
Potentally leaks information about user accounts accessiblity.
Is there a proper way to fix this bug? My users are complaining about the delay.
Mass change of RESOLVED bugs to CLOSED