Live data from Hacker News

Why does SSH send 100 packets per keystroke?

eieio.games

21–30 of 375 posts

Re: Why does SSH send 100 packets per keystroke?

#21
The really mysterious part is how ~10,000 packets per second costs ~20% of a core. That would mean SSH is bottlenecking in its code at ~50,000 packets per second per core which would be ~500 Mbps per core (assuming full packets) which is ludicrously slow. It is trivial to do 10x that packet per second rate. Is SSH really that poorly designed?

Re: Why does SSH send 100 packets per keystroke?

#22

> Keystroke obfuscation can be disabled client-side. please never do that (in production) if anyone half way serious tries they _will_ be able to break you encryption end find what you typed this isn't a hypothetical niche case obfuscation mechanism, it's a people broke SSH then a fix was found case. I don't even know why you can disable it tbh.

They literally explain the mechanism in the post and then explain why the security tradeoff made sense for their ssh game………

Re: Why does SSH send 100 packets per keystroke?

#23

> That 20ms is a smoking gun - it lines up perfectly with the mysterious pattern we saw earlier! Speaking of smoking guns, anybody else reckon Claude overuses that term a lot? Seems anytime I give it some debugging question, it'll claim some random thing like a version number or whatever, is a "smoking gun"

smoking gun, you're absolutely right, good question, em dash, "it isn't just foo, it's also bar", real honest truth, brutal truth, underscores the issue, delves into, more em dashes, . It's nauseating.

Come on...haven't we all had to deal with the crazy smart lead who was loaded with those same types of annoying tics?

Considering what these LLMs bring to the table, I think a little tolerance for their cringe phrases is in order.

Re: Why does SSH send 100 packets per keystroke?

#25
> I am working on a high-performance game that runs over ssh.

Found your problem.

But it is an interesting world where you can casually burrow into a crypto library and disable important security features more easily than selecting the right network layer solution.

Re: Why does SSH send 100 packets per keystroke?

#26
post #9

> That 20ms is a smoking gun - it lines up perfectly with the mysterious pattern we saw earlier! Speaking of smoking guns, anybody else reckon Claude overuses that term a lot? Seems anytime I give it some debugging question, it'll claim some random thing like a version number or whatever, is a "smoking gun"

ChatGPT too. And "lines up perfectly" when it doesnt actually line up with anything

"You're so right, that nice catch lines up perfectly!"

Re: Why does SSH send 100 packets per keystroke?

#27

> That 20ms is a smoking gun - it lines up perfectly with the mysterious pattern we saw earlier! Speaking of smoking guns, anybody else reckon Claude overuses that term a lot? Seems anytime I give it some debugging question, it'll claim some random thing like a version number or whatever, is a "smoking gun"

You might see certain phrases and mdashes ;-) rather often, because … these programs are trained on data written by people (or Microsoft's spelling correction) which overused them in the last n years? So what should these poor LLMs generate instead?

Re: Why does SSH send 100 packets per keystroke?

#28

> Keystroke obfuscation can be disabled client-side. please never do that (in production) if anyone half way serious tries they _will_ be able to break you encryption end find what you typed this isn't a hypothetical niche case obfuscation mechanism, it's a people broke SSH then a fix was found case. I don't even know why you can disable it tbh.

But they'd have to be on the same network as me to do that attack, right?

Re: Why does SSH send 100 packets per keystroke?

#29
post #9

Earlier quoted context omitted.

ChatGPT too. And "lines up perfectly" when it doesnt actually line up with anything

"You're so right, that nice catch lines up perfectly!"

It's not just a coincidence, it's the emergence of spurious statistical correlations when observations happen across sessions rather than within sessions.

Re: Why does SSH send 100 packets per keystroke?

#30
post #20

> That 20ms is a smoking gun - it lines up perfectly with the mysterious pattern we saw earlier! Speaking of smoking guns, anybody else reckon Claude overuses that term a lot? Seems anytime I give it some debugging question, it'll claim some random thing like a version number or whatever, is a "smoking gun"

Yes! While this post was written entirely by me, I wouldn't be surprised if I had "smoking gun" ready to go because I spent so much time debugging with Claude last night.

Reminds me of ethimology nerd's videos. He has some content about how LLMs will influence human language.
Post reply on HN