DEV Community

Cover image for Linux SSH Session Is Slow
Shreyansh Panchal
Shreyansh Panchal

Posted on • Edited on

Linux SSH Session Is Slow

This post is for you if you've run into the problem where your ssh session is painfully slow despite the fact that there free resources available on your machine.

First thing you want to check is latency to your server from your development machine. You can do that by ping or trace route. If you find that Latency is in-fact your issue. We can slightly improve by disabling Reverse DNS Lookup by server. Here's a full argument in favor of disabling reverse dns lookup.

How to do it?
You should head over to sshd_config file.
Add this key to your file UseDNS no.

You might have to disconnect from your ssh & reconnect again in-order to see the changes.

I hope it helps :)

Top comments (0)