LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   slow ssh authentication (https://www.linuxquestions.org/questions/linux-networking-3/slow-ssh-authentication-674894/)

stefaandk 10-07-2008 03:44 PM

slow ssh authentication
 
I installed 2 new Centos 5.2 boxes.

Both use Key authentication for ssh, both use the same sshd_config.
Same user and key even.

Making an ssh connection to one system logs me in immediately, the other one takes almost 30 seconds before I get my prompt. I went through all settings disabled iptables but can't see any reason why this is happening.

Any suggestions are appreciated.

irishbitte 10-07-2008 04:33 PM

I have a similar issue, using some ubuntu boxes as static IP boxes, caching packages to install across network. Some respond immediately on ssh, others take a few seconds, others take up to a minute. I'm resigned to it at this stage! I think it may have something to do with network latency at particular points.

XavierP 10-07-2008 04:58 PM

I have moved this to Linux-Networking as you may get more responses there.

stefaandk 10-07-2008 06:26 PM

I don't think its latency as they are in the same IP subnet and physically on the same switch even, the path to each box is the same basically.

stefaandk 10-10-2008 04:26 AM

I found the reason, related to RDNS and in my resolv.conf I had typo in the IP of the DNS server listed first.

irishbitte 10-12-2008 04:28 PM

I'm happy you solved the problem, I must look at my boxes now!


All times are GMT -5. The time now is 08:43 PM.