Wednesday, October 9, 2013

SSH slowness

For those experiencing SSH slowness, you might want to take note of the following:

 If you are getting sluggish response in getting the login prompt, it might be due to the fact the the SSH server is trying to perform a reverse lookout on host your are initiating traffic from. Check to confirm it any firewall rules that might be preventing the ssh host from doing a reverse lookup. That might save you sometime to perform a thorough troubleshooting :)

Alternatively, you can just go to edit the sshd config file as follow:

sudo  vi /etc/ssh/sshd_config

comment out UseDNS  as per follow:

#UseDNS yes

and restart the ssh daemon

sudo service sshd restart


sudo systemctl restart sshd.

Happy SSH :)