Contents
- A single SSH connection contains several security decisions
- Hybrid KEX protects the transport secret
- Authentication requires identity and authorization
- The host key represents another separate migration
- How to create a readable real-state matrix
- Migration should have order and the possibility of return
- How to talk about the result without ambiguity
- Frequently asked questions
A single SSH connection contains several security decisions
When establishing SSH, the parties agree on cryptographic mechanisms, establish secrets, and verify the server. This is followed by user authentication and opening of the required channels. From the user's perspective, it is a single connection, but the individual steps address different threats. Therefore, it is necessary to read claims about post-quantum SSH always with a specific layer in mind.
Key exchange, or KEX, forms the basis for deriving transport keys. The host signature binds the protocol transcript to the server's identity. User authentication proves that the account logging in is authorized. These mechanisms can belong to different cryptographic families at the same time without indicating an error or inconsistency in the diagnostics.
Hybrid KEX protects the transport secret
The mlkem768x25519-sha256 mechanism combines post-quantum and classical components to establish a shared secret. One purpose is to reduce the risk that communications recorded today could be decrypted in the future after the classical key exchange is broken. Its precise security depends on the standard construction, implementation, and correct protocol binding; simply transmitting two public keys is not enough.
Such a KEX can be used when logging in with the Ed25519 key. Ed25519 does not gain the post-quantum signature property. Conversely, a new signature key based on a post-quantum scheme will not replace the classic KEX if the connection actually negotiated it. Both layers must be inventoried and verified separately.
Authentication requires identity and authorization
Post-quantum user authentication requires a supported signature format, a client capable of signing the correct data, and a server capable of verifying the signature and associating it with the authorized account. The key generator only handles part of this chain. In addition, the key must be introduced into the appropriate authorization mechanism and its private part must be securely accessible to the client.
Maintain the principle of verified identity during the transition. A new public key does not become trusted just because it uses a newer algorithm. The administrator must know whose key is being authorized and with what restrictions. In an environment using certificates, assess support for the entire certificate profile, rather than just the bare key without the authority's signature.
The host key represents another separate migration
The server authenticates itself with its own host key. The user typically works with a stored fingerprint or trusted host authority. Changing the user key on the server does not change this mechanism. To assess the resilience of the server against future active impersonation, you also need to evaluate its signature and established trust.
Host key rotation requires a validated process. Automatically deleting the original entry on every warning would defeat the purpose of the check. First, determine whether this was an expected change and whether the new fingerprint came from a trusted channel. The post-quantum name in the warning is not a substitute for this verification.
How to create a readable real-state matrix
For each important connection path, record the client, server, KEX, host algorithm, and user authentication. If the path includes a jump host or another separate SSH connection, record those connections separately. For each item, distinguish the supported algorithm, the configured offer, and the algorithm actually selected for a real connection.
ssh -Q kex
ssh -Q key
ssh -vv spravce@server.exampleRead the diagnostic output in stages. The list from ssh -Q is not a record of the established session, and the offered user key is not yet an accepted authentication. If the client logs in with an alternate password, a successful terminal does not demonstrate the intended use of the signing key. Also confirm the resulting login method.
Migration should have order and the possibility of return
Start with a measurable goal, such as hybrid KEX for transferring backups whose contents must remain confidential over the long term. Validate representative clients and automation, prepare a supported upgrade, and decide on signature migration separately. Do not rewrite all algorithm lists at once without knowing which older devices log in to the infrastructure.
When adding a new user key, leave a controlled recovery path and perform a new test before removing the old authorization. Announce server identity changes in a way that users can trust. A failed test should not automatically lead to enabling legacy mechanisms across the entire infrastructure; determine the exact stage and cause.
How to talk about the result without ambiguity
- Hybrid key exchange describes the protection of transport secrets.
- A post-quantum signature describes a different cryptographic operation.
- Host and user identities have different keys and trust management.
- The availability of the generator does not prove client and server compatibility.
For CH-J Tools, assess the specific release and operation. For example, the mobile 0.0.4 series does not inherit all the capabilities of the system OpenSSH installation on a desktop. A useful operational conclusion lists the layers actually tested and the remaining limitations. Repeat this assessment after an update and use the record as a basis for further changes.
Frequently asked questions
Will hybrid KEX change my Ed25519 key?
No. Key exchange and signature identity are separate mechanisms.
Is the host key the same as the user key?
No. The server and the logging in user are authenticated separately.
Is generating a new key enough?
No. You need compatible usage, verified identity, and appropriate authorization.
Detailed documentation
OpenSSH: post-quantum transport protection →
OpenSSH: authentication and diagnostics →
OpenSSH: client configuration →