Article 54F0E Bizarre SSH delay to my linux server on my local network

Bizarre SSH delay to my linux server on my local network

by
sicklybeans
from LinuxQuestions.org on (#54F0E)
Hi all,

I wasn't sure where exactly to post this because it's not super clear what the underlying issue is. Apologies if this is in the wrong place.

I recently purchased an old server box to use as a home server. It's currently connected to my home network over WiFi (temporary). It uses an Intel Xeon 5670 processor and runs Manjaro.

when I ssh into this machine, there is a very long delay between when I type and when it shows up on my screen (~1-2 seconds).

My first suspicion was the delay time caused by the WiFi card. However, when I directly ping my server, the typical delay is ~4ms. Also when I download content to my server from the web, I get speeds on the order of 20MB/s.

I next suspected that the bottleneck might be the encryption cipher underlying the SSH packets. However, when I run gotop over SSH, all 12 CPU cores show between 0% and 1% usage. Furthermore, when I SSH with different encryption ciphers, I see no noticeable improvement.

What's even stranger is that when I host a server off this box using nginx, it serves HTML/JS in <50ms. So it seems to be limited to SSH. This really makes me think that encryption is the bottleneck. But I can't see why that would be the case. The X5670 is certainly an older processor, but not so old that encrypting packets should freeze up the system.

The SSH delay makes doing work on the box basically impossible. Any hints would be greatly appreciated.latest?d=yIl2AUoC8zA latest?i=JA9liceoyrQ:iZYafQA1N2I:F7zBnMy latest?i=JA9liceoyrQ:iZYafQA1N2I:V_sGLiP latest?d=qj6IDK7rITs latest?i=JA9liceoyrQ:iZYafQA1N2I:gIN9vFwJA9liceoyrQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments