My SSH probe was reporting algorithm names that do not exist. The last entry in a server's list came back as …@openqu , cut off mid-word. The server was my own test box running an Open Quantum Safe build of OpenSSH, which offers 71 key exchange algorithms. My tool was reading that list from ssh -vv , and ssh -vv had quietly stopped printing it.
The cause is a fixed 1,024-byte buffer in OpenSSH's logging code. It truncates any log line longer than that, with no marker that anything is missing. This post shows where it happens in the source, who it affects, and how to read the server's list directly from the wire in about 20 lines of Python.
This is part 2 of a series on building pqc-probe . Part 1: Which post-quantum key exchanges does a server actually support?
Where the server's list shows up
Before any encryption starts, an SSH server sends its proposal: the key exchange algorithms, host key types, ciphers and MACs it accepts, each as a comma-separated list.…