We have a peculiar problem with SSH connection. We have a local DNS Server to resolve the local subnet. 192.100.X.XSince few days ago we have started getting problem while connecting to local servers using hostname, so this is what happens: when I SSH from one local Unix system (systemA) to another Unix system (systemB)it waits for few seconds(10-20 sec) and then gets through. Next time immediately if I try same connection, it gets through immediately. Which it used to be like this. But now everytime ssh connection to local server. Surprisingly when I try to do it using IP address, it gets through immediately. I say surprisingly because nslookup gives correct IP address of the systemB hostname that too quickly.So if I assume DNS is working correctly then why SSH connection takes time? I searched on the Internet and there are some suggestions, e.g. setting UseDNS to No. But it didn't help me.ssh root@systemB -vvvOpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Applying options for *debug2: ssh_connect: needpriv 0At this stage it waits for 15-20 seconds.And then it gets through....debug1: Connecting to bachost [192.100.X.X] port 22.debug1: Connection established.:::
Slow SSH connection
ssh;dns;ip