Thursday, May 7, 2015

Takes a long time to SSH to a server

You SSH to a server and notice it takes 30 seconds or more before you're prompted for the password. If you add the -v option, you can see it hangs at service accept message. Eg:

# ssh -v myserver
debug1: SSH2_MSG_SERVICE_ACCEPT received
(hangs for 30+ seconds at this point)

The fix for me, was correcting DNS resolution on the target server.

No comments:

Post a Comment