Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
Thanks, but I've already tried that with no luck. – Aaron Sep 5 '13 at 14:20
up vote 0 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.