Tag Archives: ssh delay

Fixing laggy SSH connections

This is more of a reminder post as I’m sure I’ll be hitting this problem again and posting about it will help me remember the solution.

So if you’re struggling with a laggy SSH connection to your PI, slow typing, slow output to common commands (like dmesg) and even freezes, try adding these 2 things to your /etc/ssh/sshd_config file:

  1. UseDNS no
  2. IPQoS 0x00

The second one fixed my problem. I have no idea why but after one day of getting frustrated with what seems like it should just work I started trying all suggestions I could find.

I honestly don’t understand how something so basic can fail like this… By basic I mean used by everyone/everything all the time, not simple.

 

Advertisements