Reaction score: 20
What controls the delay between entering the login name and the "Password" prompt appearing in a SSH session?
Reaction score: 3,637
Check if your primary DNS server works all the time. If resolving through that one fails the system will try the second DNS entry. But this will cause a slight delay as the system has to wait for the first request to time-out. The request to the second server may succeed. If it also fails the delay will even be a little longer. This may account for the variation in timing you are witnessing.michaelrmgreen said:Hmm, odd, sometimes the gap is a couple of seconds, sometimes 30 seconds. It used to be consistently two seconds or less.
Thank you Mr GetoptIn file ssh_config set
This prevents SSHFP requests to DNS servers. This is causing the delay if the DNS server does not find anything. This might also be regarded as leaking ssh usage when not configured properly.Code:
In file sshd_config set
prevents looking up the IP of a SSH-host, so in most cases there should be used "yes" unless you want to use IP numbers only.Code: