Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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.

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

 
discard

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.