So for a while I've been dealing with slowness when logging in to my server.
My setup is I have the main server with dual NICs connected to a switch and my desktop also connected to that switch. They're separated by about 1 foot, so no real distance and all local network. The slowness is only noticed when connecting locally. If I connect in with Putty from, say my work, there is no lag at all.
I finally got around to "Google-ing" the issue and came up with a really simple fix.
sudo pico /etc/ssh/sshd_config
and add this at the bottom:
UseDNS no
Then restart the SSH daemon
sudo /etc/init.d/ssh restart
Next time you go to log in you won't have that delay with the login. The odd thing is I've been connecting to my server through IP address, so no DNS at all.
This makes my day.
