The version 2 specifications in Requests for Comments (RFCs) 4251–4254 separate transport protection, user authentication, and connection channels. A client verifies the server’s identity, negotiates cryptographic protection, and authenticates an account before opening permitted sessions or forwarding channels. Maintained implementations and current algorithm choices remain necessary because the original specifications include outdated options.
Host keys identify servers; user keys can authenticate people or automation. A server’s authorized-key configuration grants access under an account and its restrictions, so forgotten public-key authorizations can remain dangerous even when passwords change.
Key points
Host verificationTrusted host-key records or certificates bind the connection to the intended server; unexplained changes need investigation.
Key lifecyclePrivate-key protection, named ownership, authorization inventories, rotation, and removal of obsolete access reduce persistent trust relationships.
Session restrictionsAccount privileges, command limits, logging, and controlled port or agent forwarding constrain what authenticated access permits.
Important limitationEncryption does not make a compromised endpoint or authorized command safe. Stolen keys, unchecked host identities, excessive privilege, and permissive forwarding can undermine the intended protection.