I have a CentOS 6.4 server sitting right next to me (same subnet and everything) and when I try to connect to it from another machine via SSH it hangs for about 10 seconds until finally prompting for a password. Any ideas what could be causing this?

I'm using the IP to access it so that rules DNS issues out. The machine is next to me on the same switch and subnet. I'm not using keys for authentication, just regular password authentication.

2 Answers 2


Are you sure you can rule out DNS issues? Often when similar symtoms occur, It may be that SSHD is doing a reverse-lookup of the connecting IP, but eventually fails after reaching a timeout.

Try setting in /etc/ssh/sshd.conf

UseDNS no

and reload sshd daemon and connect again.

  • Thanks, but I've already tried that with no luck.
    – Aaron
    Sep 5, 2013 at 14:20

I ended up solving this issue by setting GSSAPIAuthentication to no on the server. That fixed the long delay I was experiencing.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .