I have two machines:
- Windows 7 connected by ethernet to a router
- NixOS laptop, connected wirelessly to same router
My issue is that sshing from Windows to NixOS is extremely laggy. If I ping NixOS from Windows, I get times of about 100ms - 200ms. If I do the reverse- ping Windows from NixOS- I get times < 10ms.
The NixOS install is recent. Prior to this, I had Arch Linux, which did not suffer the same problem. I don't recall any other changes.
Additionally, I can ssh to a remote server not on the LAN. SSHing from either Windows or NixOS to the remote server has no issues whatsoever with lag.
I have tried the following:
- setting this option in sshd's config:
UseDNS no
- setting my nameserver to
8.8.8.8
However, these haven't helped (seems to be a lower-level issue than sshd)
My question: what do I need to do to stop SSH lagging?