← Back to section · Digital Security

A History of Deprecation: How SSH Retires Its Own Past

The SSH protocol has lived for nearly thirty years, and its algorithm list is a history of continuous subtraction: the exit of protocol version 1, the break with ssh-rsa and SHA-1, the clearing-out of CBC and small DH groups, and the strict key exchange introduced after the Terrapin attack. This article traces that deprecation arc and the algorithm-agility question behind it.

Published 22 November 2026 · 6 min read · PQ Frontier

A History of Deprecation: How SSH Retires Its Own Past
AI-generated site artwork
Video explainer · SSH Security: Keys and Access Control

A History of Subtraction

SSH protocol 2 was finalised in 2006 as RFCs 4251–4254, and in the nearly twenty years since there has been no “protocol 3.” It has stayed secure not by generational replacement but by continuously subtracting from its algorithm list:

  • Protocol version 1: SSH-1 had structural flaws (such as the weak CRC-32 integrity protection, exploitable by insertion attacks); OpenSSH disabled its server support by default in version 7.4 (2016) and later removed it entirely. Protocol 1’s exit followed the textbook path: off by default first, then code deleted — leaving a migration window for existing users, but with an irreversible direction.
  • ssh-rsa and SHA-1: RSA itself was not the problem; the SHA-1 hash used in its signatures was — its collision resistance has been practically broken. OpenSSH 8.5 began issuing deprecation warnings for ssh-rsa, and version 8.8 (2021) disabled SHA-1-based RSA signatures by default; RSA keys moved to rsa-sha2-256/512 (RFC 8332). The same RSA key keeps working with a different hash; what was retired was the hash, not the algorithm family — a model of “precision strike” in deprecation decisions.
  • Clearing out ciphers and key exchange: CBC-mode ciphers (with their padding-oracle class of problems), the arcfour stream cipher, single DES and 3DES, the 1024-bit diffie-hellman-group1-sha1 and the SHA-1 variant of group14 were successively removed from default lists across versions; MD5- and SHA-1-based MACs were likewise replaced by SHA-2 MACs in EtM (encrypt-then-MAC) mode.

The common thread in this arc: every removal was triggered by concrete progress in cryptanalysis, not by a schedule of routine retirements. The algorithm list therefore resembles a continuously updated risk register more than a configuration written once.

The Negotiation System’s Inherent Difficulty

SSH algorithms are negotiated in the handshake by intersecting the two sides’ lists. This creates a structural difficulty for deprecation: removing a weak algorithm from the server’s default list only cleans up “new client to new server”; as long as some old client still ranks the weak algorithm first, or an administrator manually re-adds an exception for some legacy device, the weak algorithm remains within the actual negotiation radius. The classic man-in-the-middle downgrade script works exactly like this: the attacker does not need to break the strong algorithm, only to arrange for both sides to negotiate the weakest item still on the list — provided it is still on the list.

So the real work list for deprecation never stops at the server: client default lists, algorithm lists frozen into configuration-management templates, old implementations embedded in jump hosts and automation tools, and SSH libraries in vendor equipment that go a decade without updates all need itemised checking. At the organisational level, the practice is to treat the algorithm list as a baseline policy distributed centrally (governing sshd_config and ssh_config together) and to verify periodically with real negotiations — sampling the algorithms actually negotiated on live connections reflects the list’s true state better than inspecting configuration files.

Terrapin: When the Problem Is Not the Algorithm but the Handshake

The Terrapin attack, published at the end of 2023 (CVE-2023-48795), added a new chapter to the deprecation history: it attacks no algorithm at all, but exploits properties of sequence-number handling during the handshake to truncate a prefix of handshake messages under specific cipher modes (ChaCha20-Poly1305 and CBC-EtM), quietly downgrading the connection’s security properties. The encryption and authentication algorithms were all modern; the flaw was in the seams of the protocol machine.

OpenSSH 9.6’s response was to introduce strict key exchange: both sides negotiate by appending the markers kex-strict-s-v00@openssh.com / kex-strict-c-v00@openssh.com to algorithm names, and once enabled, handshake sequence numbers are strictly validated and any excess message terminates the connection — semantically sealing off the whole prefix-truncation class. Its deployment method is also representative: no switch, no configuration — if the version is new enough and the peer supports it, it takes effect automatically. This points to a deeper trend: protocol security fixes are expanding from “swap the algorithm” to “repair the handshake semantics” — protocol-behaviour agility on top of algorithm agility.

How the Deprecation Timetable Is Set

Looking back at these cases, deprecation is never a single step but a fixed four-stage pipeline: first, announce the deprecation in release notes (naming the algorithm and the reason, with the expected removal window); then build the warning into tool behaviour (ssh prints a deprecation notice when it negotiates ssh-rsa, for instance); then, in some major version, disable by default (the algorithm remains in the code and explicit configuration can still enable it — a final escape hatch for legacy systems); and finally, in a later version, delete the implementation. Protocol 1 took nearly a decade to walk this line; ssh-rsa took two release cycles from warning to default-disabled.

The pacing is fundamentally a risk trade-off: deprecate too slowly and weak algorithms stay exposed for years; deprecate too fast and large fleets of legacy equipment (the decade-unupgraded SSH implementations inside network gear, storage arrays, and industrial control systems) lose their management channels outright, and operational pressure rebounds in the form of “add the algorithm back.” OpenSSH’s approach gives every stage a clear signal and uses “explicit configuration can temporarily re-enable” as a buffer — but a buffer is not a pardon; the implementation-deletion step always arrives. The actionable reading for users is concrete: any algorithm named as deprecated in release notes should enter your own migration list immediately, not on the day it gets disabled by default and catches you unprepared.

The second lesson concerns ordering: what was retired first was always what had practical attacks or clear weaknesses (SHA-1 collisions, CBC’s oracle attacks, protocol 1’s structural flaws), while items like hmac-md5 — “bad reputation, but no practical attack under the HMAC construction” — exited later and more incidentally. Priority follows the cryptanalytic evidence, which is also why watching release notes beats watching any second-hand “hardening checklist”: the primary source contains the evidence and the timetable behind deprecation decisions; the second-hand list is only a snapshot of conclusions.

Conclusions for Users

For today’s users, this history condenses into three practices. First, keeping versions current is the highest-value action in SSH security — every tightening of the default lists and every semantic repair like strict key exchange arrives only with versions. Second, explicitly declared algorithm lists need periodic review: a “hardening list” written into configuration five years ago may be exactly what now blocks today’s defaults — or still contains algorithms that have since exited. Third, fold negotiation results into routine inspection: what algorithms your systems actually connect with is a question only the handshake itself can answer.

References

Tags: SSHDeprecationProtocol EvolutionAlgorithm Agility