logoalt Hacker News

maxwell_smartyesterday at 11:41 PM1 replyview on HN

SSH can't send out a packet for every keystroke as soon as it gets it-- otherwise it's susceptible to timing attacks based on minute variations in speed of hitting different combinations of letters on the keyboard.


Replies

waherntoday at 12:41 AM

If I understand the code correctly, OpenSSH only injects delays and chaff when you're actively typing data through an interactive session directly to the ssh client itself (i.e. it's reading your key strokes from the TTY, as opposed to keystrokes being sent as opaque data over the X11 channel). There would be no disruption to X11 forwarding while you're not actively typing, and even then there's no delay if it can bundle key presses with non-interactive data. See https://github.com/openssh/openssh-portable/blob/088ca00/cli...

For a full desktop session, X11 over TCP should be much faster just because each X11 client app has it's own TCP connection, whereas for SSH X11 forwarding every app is tunneled over a single TCP connection.

show 1 reply