What SSH host keys are and where you meet them
If a scanner report, vendor answer or tender question mentions SSH host keys, it is asking about the server's own identity key. An SSH host key is the key a server uses to prove who it is during connection setup, and the server signs the exchange hash with it. RFC 4253, the Proposed Standard that defines the SSH transport layer and was published in January 2006, sets out this role in its section on key exchange, where it says the server host key signs the exchange hash and that the signing algorithm is negotiated during the algorithm exchange RFC 4253. Sysadmins, security reviewers and auditors meet the term most often because it sits in a different place from the key exchange method, which is the other negotiated choice in the same handshake.
The two are easy to confuse, so keep them apart when you read a report. The host key authenticates the server and is usually an asymmetric key pair stored on the server, with its public half recorded by clients. The key exchange method, such as mlkem768x25519-sha256 or sntrup761x25519-sha512, governs how the session secret is agreed. A scanner may list both, and a finding about one does not automatically describe the other. Post-quantum work on key exchange and on host keys is therefore handled separately, and the OpenSSH project notes that signatures do not carry the same store-now-decrypt-later risk as key agreement, so the priority for signature keys is retiring classical ones before capable quantum computers exist.
In practice you find host keys in the server's sshd_config, in the key files under /etc/ssh (which are named by algorithm, such as ssh_host_ed25519_key.pub), and in the client's known_hosts file, which records the public keys a client has accepted. Scanner output usually lists the host key type and fingerprint for each service. Before you answer a tender or vendor question, confirm which host key algorithms your OpenSSH version and configuration actually offer, since the sources in this section do not describe signature algorithms for post-quantum host keys beyond the OpenSSH note that support is planned for the future.
Names and variants of SSH host key algorithms
This table lists the host key and signing algorithm names that the sources on this page support, with what each name refers to and where it is defined. Use it to match names in an sshd or ssh configuration, a scanner report or a vendor answer to the document that defines them. No signing algorithm in this list is identified as post-quantum by the sources, and the sources name no post-quantum host key signature algorithm.
| Name | What it refers to | Where it is defined |
|---|---|---|
| ssh-rsa | RSA signature using SHA-1 hashing, the historical default host key signature name in many SSH implementations | RFC 4253 (the SSH transport layer, which negotiates the signing algorithm in key exchange) |
| rsa-sha2-256 | RSA signature using SHA-256 hashing, a classical signature name listed alongside ssh-rsa | Named in the OpenSSH documentation; confirm the defining document for your version in the OpenSSH release notes |
| rsa-sha2-512 | RSA signature using SHA-512 hashing, a classical signature name listed alongside ssh-rsa | Named in the OpenSSH documentation; confirm the defining document for your version in the OpenSSH release notes |
| ecdsa-sha2-nistp256 | ECDSA signature over the NIST P-256 curve, a classical signature name | Named in the OpenSSH documentation; confirm the defining document for your version in the OpenSSH release notes |
| ssh-ed25519 | Ed25519 signature, a classical signature name | Named in the OpenSSH documentation; confirm the defining document for your version in the OpenSSH release notes |
| Post-quantum host key signature names | None listed. The sources do not name any post-quantum host key signature algorithm. | The OpenSSH project page says OpenSSH will add post-quantum signature support in the future without naming algorithms or versions |
| Post-quantum key exchange names (for contrast) | These name key exchange methods, not host key signatures, such as mlkem768x25519-sha256 and sntrup761x25519-sha512 | RFC 10042 and RFC 9941 define hybrid key exchange methods; these do not establish a host key signature algorithm |
Where SSH host keys appear in configuration, scans and reviews
Readers meet SSH host keys in four kinds of places: the server's own configuration, the handshake where algorithms are negotiated, scanner and audit output, and the procurement documents that ask about them. Each place shows a different part of the same question, which is which key exchange and signing algorithms a system actually offers and accepts.
The sshd host key files
Host keys are stored as files on the server, and sshd_config points to them with HostKey lines. Each file holds a key for one signing algorithm, so the list of host key files shows which signature types the server can present to clients. Check which algorithms are listed and whether any classical host keys remain configured. The OpenSSH project page says signature keys carry a different urgency than key exchange, and that retiring classical signature keys is the priority before capable quantum computers exist. Confirm the algorithms against the OpenSSH release you run.
Algorithm negotiation during connection
During connection setup, client and server each send a list of supported key exchange and signing algorithms. RFC 4253 says the client's preference order wins among options both sides support, and that the connection fails if no compatible set exists. Look at which key exchange method is chosen in a handshake log, since that choice shows whether the session used a post-quantum method or a classical one. The server host key also signs the exchange hash, so the negotiated signing algorithm matters as well.
RFC 4253Scanner and audit output
SSH scanners list the key exchange methods, host key types and ciphers a server accepts. The output shows what the server offers, not what a given client will negotiate, so a scan can show a post-quantum method present and still reveal a classical method the server also accepts. Read each finding as a list of accepted algorithms. Recent OpenSSH releases log when a client uses a key agreement scheme that is not post-quantum safe, so server logs can also serve as evidence. Confirm the scanner's method names against the RFC or OpenSSH documentation before reporting them.
Vendor questionnaire answers
Vendor security questionnaires often ask which SSH key exchange methods and host key algorithms a product supports. Treat the answer as a claim to verify. A product can support a method in one version or edition and not another, so ask for the exact version and component each answer applies to. Ask whether post-quantum key exchange is enabled by default, and whether signature keys are post-quantum or classical. Request the configuration that shows it, rather than accepting a yes or no.
Tender and procurement language
Tender documents sometimes require SSH to support post-quantum key exchange or specify a named method. Read the requirement against the specific method names and the version that carries them. A requirement for a named key exchange method can be met by a product that supports it only in some configurations, so ask the bidder to confirm the default settings and the configuration needed to enable the method. Keep the wording of the requirement, the bidder's answer and the version it applies to together in the file.
How the host key signs the exchange and how algorithms are negotiated
The server host key has one job in the SSH transport layer: it lets the client confirm which server it is talking to. As RFC 4253 section 8 describes, the server host key signs the exchange hash, so the client can check that the key exchange was carried out with the holder of that key. The algorithm used for that signature is itself negotiated during the algorithm exchange at the start of the connection. Anyone configuring or reviewing an SSH server should therefore read two lists: the host key algorithms the server offers, and the key exchange methods it accepts. Both are set on the server and both shape what a client can agree to.
Negotiation works from the client's side. Each party sends a list of algorithms it supports, and the client's preference order decides among the options both sides share. If no compatible set exists, RFC 4253 says both sides disconnect, so a host key or key exchange method that the client cannot match will stop the connection rather than fall back silently. For post-quantum planning, this means an update to the server's offered algorithms may change which clients can still connect. Confirm this against the client versions you run, and test a connection after any change to the host key or key exchange configuration.
The host key is separate from the key agreement method. The key exchange method, such as one of the hybrid methods, establishes the shared secret that protects the session, while the host key signs the exchange so the client knows whose exchange it is. Changing one does not automatically change the other. The OpenSSH project page notes that signatures do not carry the same store-now-decrypt-later risk as key agreement, and that OpenSSH will add post-quantum signature support in the future without naming algorithms or versions. Check the OpenSSH release notes and your vendor's documentation for the current host key options in the versions you deploy.
What the sources say about post-quantum host key signatures
The sources listed for this topic separate two things that are easy to blur: key exchange and host key signatures. RFC 4253, a Proposed Standard published in January 2006, defines the SSH transport layer, including the host key signing that proves a server's identity during the exchange. The post-quantum RFCs listed on this page, RFC 10042 and RFC 9941, cover key exchange methods such as mlkem768x25519-sha256 and sntrup761x25519-sha512. They do not define post-quantum host key signature algorithms. If your inventory or vendor answer treats the post-quantum RFCs as covering host keys, correct that before you record the status.
The OpenSSH project states that signatures carry a different risk than key agreement. Its position is that the store-now-decrypt-later concern applies most directly to key exchange, so the near-term priority for signature keys is retiring classical keys before capable quantum computers exist. OpenSSH says it will add post-quantum signature support in the future, but it does not name the algorithms or versions, and the sources do not say when that support will arrive. Plan for host key signatures as an open item with no committed date, and ask your SSH server vendor or distribution whether it has a timeline for any post-quantum signature support.
In practice, this means your migration plan should track two separate tracks. For key exchange, check the negotiated methods in your OpenSSH version, since the release notes describe defaults and client and server warnings that depend on the release. For host keys, confirm which signature algorithms your servers use and document that no post-quantum signature option is covered by the sources on this page. Confirm the details for the exact versions you run against the OpenSSH release notes and the RFC text before you make compatibility claims to an auditor or customer.
Where the host key sits in the SSH connection
The diagram starts when the client opens a transport connection and both sides send their supported algorithm lists. The client's preference order decides among mutually supported options, and if no compatible set exists both sides disconnect. The key exchange method is then agreed and run, and it is separate from the host key signing algorithm, which is negotiated in the same algorithm exchange. The server signs the exchange hash with its host key, and the client verifies that signature against the host key it expects. Check that the key exchange method and the host key algorithm are both listed in the server's configuration, since a mismatch in either will fail the connection.
Key exchange and host key signature are separate steps in the handshake.
What to check in an SSH inventory for host keys
This sequence produces a verified record of which SSH host key types, signing algorithms and key exchange methods each server offers and negotiates, so that the reader knows where post-quantum and classical key exchange currently stands. Each step ends with a check that confirms the finding before it is written into the inventory.
List host key types and files per sshd configuration
Start by collecting the sshd configuration on each server or appliance in scope, including any included files. Record every HostKey directive and the file path it points to, along with the key type that each file holds, such as Ed25519, ECDSA or RSA. The configuration file usually sits at /etc/ssh/sshd_config, and the active host keys can be confirmed by checking the files on disk with ssh-keygen against each path. This step is done when every server in scope has a written list of host key files and their types, and each listed file has been checked against the configuration that loads it. Where a configuration directive is absent, the default behavior of the installed sshd build applies, so the reader should confirm that default in the vendor or OpenSSH documentation for the version in use.
Record offered host key signing algorithms
For each server, record the host key signing algorithms that the server offers during key exchange. The offered list can be read by connecting with verbose client output or by using a scanner that reports the server's algorithm lists, and the output should be saved with the hostname and date. RFC 4253 says the server host key signs the exchange hash and that the signing algorithm is negotiated during the algorithm exchange, so the offered list is what the client and server will choose from. The step is complete when each server's offered host key algorithms are captured in the inventory, with the capture method and date noted. Signature algorithms are a separate question from key exchange, and the reader should keep them in separate columns so that a later review does not confuse one with the other.
Check negotiated key exchange methods
Next, record the key exchange methods that each server negotiates with a representative client. The negotiated method is the one actually used, which can differ from what the server lists, because RFC 4253 says the client's preference order wins among mutually supported options. Check whether post-quantum methods such as mlkem768x25519-sha256 or sntrup761x25519-sha512 are negotiated, and check whether classical methods such as curve25519-sha256 are negotiated instead. For OpenSSH 10.1 and later, confirm whether the WarnWeakCrypto option is enabled in the client configuration, since OpenSSH 10.1 defaults it to on for client warnings. For OpenSSH 10.6 and later, confirm whether WarnWeakCrypto is set in sshd_config, because the release notes say sshd logs when a client uses a key agreement scheme that is not post-quantum safe. The step is complete when each server's negotiated method has been recorded and the logging setting has been checked and noted.
Ask vendors for host key algorithms and OpenSSH versions
For appliances and managed services where the reader cannot inspect the configuration directly, send the vendor a written request asking which host key signing algorithms the device offers, which key exchange methods it negotiates, and which OpenSSH version, or other SSH implementation and version, it runs. Ask whether the vendor has published any statement on post-quantum key exchange support for that version, and ask for the source of the answer. The reader should record the response with the vendor name, product, version and date received. Where a vendor cannot answer, the inventory should say so rather than fill the field with an assumption. The step is complete when every appliance without direct access has a written vendor response on file, or a recorded note that no response was given.
Confirm results with test connections
Finally, confirm each recorded finding with a live test connection rather than relying on configuration alone. Connect to each server with a client configured to offer a specific key exchange method, and check that the server accepts it and that the negotiated method matches the one recorded in the inventory. Repeat the check for a classical-only client if the reader needs to confirm that a fallback path exists. Where a server's behavior differs from its configuration or from the vendor's answer, flag the difference for investigation and do not overwrite the recorded result with the expected one. The step is complete when every row in the inventory has been confirmed by a test connection, or marked as unconfirmed with the reason. Only confirmed rows should feed into any migration plan or compliance evidence.
Common confusions when reading SSH host key claims
SSH host keys, key exchange methods and configuration options share similar names and often appear together in vendor answers and scanner output. The confusions below are the ones most likely to lead a reviewer to the wrong conclusion about what a system actually negotiates or signs.
Key exchange name is not a host key
A name such as mlkem768x25519-sha256 or sntrup761x25519-sha512 identifies a key exchange method, which establishes the session keys. It does not identify the server's host key, which signs the exchange hash to prove the server's identity. RFC 4253 section 8 describes the host key signature as a separate negotiated choice. When a vendor says a server is post-quantum key exchange enabled, check which algorithm it means before assuming the host key is also post-quantum.
RFC 4253 textCurve25519-sha256 is a key exchange
The name curve25519-sha256 comes from RFC 8731 and identifies a key exchange method that uses SHA-256. It is not a host key type. Readers scanning configuration may see it listed beside host key algorithms and assume it describes the server's signing key. Confirm the category of each entry in the sshd or ssh_config output before reading it as a host key claim.
RFC 8731 textIdentical to the libssh.org name
RFC 8731 says curve25519-sha256 is identical to the earlier privately defined curve25519-sha256@libssh.org. That statement concerns the key exchange method only. It does not say anything about host key algorithms or their signatures, and it should not be read as a claim that the two names cover the server's identity keys. Quote the statement accurately when reviewing a vendor's list of supported methods.
RFC 8731 textVendor claims may skip signatures
The OpenSSH project page states that signatures do not carry the same store-now-decrypt-later risk as key agreement, and that OpenSSH will add post-quantum signature support in the future without naming algorithms or versions. A vendor's post-quantum claim that refers only to key exchange therefore does not cover host key signatures. Ask the vendor which host key algorithms are offered, which are the default, and whether any post-quantum signature option is available in the version you run.
OpenSSH PQ pageMixing up sshd and ssh_config
The WarnWeakCrypto option appears in ssh_config from OpenSSH 10.1, where it makes the client warn when a connection negotiates a non-post-quantum key agreement, and it defaults to on. OpenSSH 10.6 makes WarnWeakCrypto available in sshd_config so the server logs the same condition. A client-side warning does not show what the server enforces, and a server-side setting does not change client behavior. Check which file and which host each setting applies to before drawing a conclusion.
OpenSSH release notesQuestions readers ask about SSH host keys
What does SSH host key stand for?
An SSH host key is the long-term key pair a server uses to prove its identity to a client during connection setup. The server signs the exchange hash with its host key, which lets the client confirm it is talking to the expected machine. The client typically records the host key on first connection and warns the user if it changes later. Host keys identify the server, while the session keys agreed during key exchange encrypt the traffic. Check which host key algorithms a server offers with its configuration, since the server, not the client, supplies them.
Are SSH host keys the same as SSH key exchange?
No. Key exchange produces the shared secrets that encrypt a session, while host keys authenticate the server. RFC 4253 describes the transport layer in which both happen, but treats them as separate negotiated items: each side lists supported algorithms, and the signing algorithm for the host key is negotiated during the algorithm exchange. A post-quantum key exchange such as mlkem768x25519-sha256 therefore does not by itself change the host key algorithm. Review both settings separately when assessing a server.
Which RFC defines host key signing in SSH?
RFC 4253, the Proposed Standard published in January 2006, defines the SSH transport layer. Its section 8 states that the server host key signs the exchange hash and that the signing algorithm is negotiated during the algorithm exchange. Readers checking a server against the specification should start there. Newer RFCs in the sshm working group, such as RFC 10042 and RFC 9941, define post-quantum key exchange methods rather than host key signing, so they do not replace RFC 4253 for this question.
Are SSH host keys post-quantum safe?
The sources listed on this page do not say that any SSH host key algorithm is post-quantum safe, and this page does not make that claim. The OpenSSH project states that signatures do not carry the same store-now-decrypt-later risk as key agreement, so its stated priority for signature keys is retiring classical ones before capable quantum computers exist. It says OpenSSH will add post-quantum signature support in the future without naming algorithms or versions. Confirm the exact host key algorithms your server offers and the vendor's stated plans before drawing a conclusion.
What does WarnWeakCrypto report about host keys in OpenSSH?
WarnWeakCrypto reports on key exchange, not on host keys. OpenSSH 10.1, released 2025-10-06, added a client warning when a connection negotiates a non-post-quantum key agreement algorithm, and that option defaults to on in ssh_config. The OpenSSH 10.6 release notes, dated 2026-10-06, say sshd logs when a client uses a key agreement scheme that is not post-quantum safe, using the WarnWeakCrypto option in sshd_config. Neither note says the option evaluates host key signature algorithms, so do not read a clean log as evidence about host keys.
What should I ask a vendor about SSH host key algorithms?
Ask which host key algorithms the server offers by default, which it allows when configured, and how the vendor sets the HostKey and related options. Request the exact product version and edition, since defaults differ between releases. Ask whether the vendor has published a plan for post-quantum host key signatures and what date or version it targets, and whether that plan is documented or only informal. Ask how key rotation and client trust records will be handled when host keys change. Keep the answers in writing so your security review can compare them against the vendor's documentation.
Can DeployOpen review my SSH host key configuration?
Yes. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, and it runs security testing that can include the SSH services those platforms expose. A review would cover which host key and key exchange algorithms are offered, how the server is configured, and what the logs show. DeployOpen does not issue audit reports or certifications; independent auditors do that. Most engagements are fixed-scope, with scope and deliverables agreed in writing before work starts, and a quote follows from that scope.
How DeployOpen works on this
DeployOpen approaches SSH host keys as part of a wider review of the SSH servers and clients an organization runs. We check which host key and key exchange algorithms each system offers and accepts, then plan changes against the versions in use. The work is scoped in writing before it starts.
How we scope
- Inventory every SSH server and client in the agreed environment, including the OpenSSH versions they run.
- Record which host key algorithms and key exchange methods each system currently offers and accepts.
- Agree in writing which systems, configuration files and host keys are covered by the review.
How we build
- Review sshd_config and ssh_config settings for key exchange order and host key algorithm lists.
- Test negotiation between representative clients and servers to confirm which method is actually chosen.
- Enable WarnWeakCrypto logging where the installed OpenSSH version supports it, to surface non-post-quantum key agreement.
How we hand over
- Deliver a written record of host key and key exchange settings for each system, with the version tested.
- Document changes made, the commands used to verify them, and any systems left unchanged with reasons.
- Walk your security and platform teams through the findings so they can repeat the checks themselves.
How we support
- Ongoing support and upgrades can be arranged as a retainer after the initial review is complete.
- Re-test negotiation after OpenSSH upgrades, since default key exchange methods have changed between releases.
- Confirm with your vendors and the OpenSSH release notes which signature algorithms they support before planning changes.
Sources and further reading
- RFC 4253: The Secure Shell (SSH) Transport Layer Protocol ↗
- RFC 10042: Post-Quantum/Traditional Hybrid Key Exchange with ML-KEM for SSH ↗
- RFC 9941: Hybrid Streamlined NTRU Prime and X25519 for SSH key exchange ↗
- OpenSSH post-quantum page ↗
- OpenSSH release notes ↗
- RFC 8731: Curve25519 and Curve448 key exchange for SSH ↗

