Blog

Slow terminal or SSH login in Ubuntu

Terminal login to Ubuntu using SSH takes upto 4-5 seconds and it can be frustrating at times. It does a reverse DNS lookup while authentication which makes it slow.

The fix is easy.

sudo vi /etc/ssh/sshd_config

And add this line in the end

UseDNS no

Restart SSH server

sudo service ssh restart

Done!