Created attachment 3558 [details] Patch to increase the wait time to 20s Running the test login-timeout.sh on my machine sometimes fails and sometimes passes. There seems to be some variance in how long it takes sshd to disconnect a client after it has timed out, and as a result the second client sometimes attempts to connect before the first client has been disconnected, which fails. Changing the wait time between the first and second connections from 15 to 20 seconds makes the test pass consistently. I've attached a patch making this change, but there may be an underlying issue in sshd that needs to be fixed instead. I'm happy to provide logs/system information/etc if that would be helpful.