TLDR Dev · ARTICLES & TUTORIALS
WHY DOES SSH SEND 100 PACKETS PER KEYSTROKE?
Summary from the TLDR Dev newsletter
A developer building a high-performance SSH game found that a single keystroke generated over 100 small packets. The root cause was identified as OpenSSH's keystroke timing obfuscation feature, which sends "chaff" packets to disguise typing patterns. By patching Go's SSH library to disable the `ping@openssh.com` extension server-side, the developer achieved a dramatic >50% reduction in CPU and bandwidth. LLMs assisted in the debugging process.