SSH Banner & Host Key Checker

Your SSH server introduces itself to anyone who connects. Read the introduction.

Before any login, an SSH server hands every connecting stranger three things: its version banner, the full list of algorithms it offers, and — once a key exchange completes — its host key. That pre-authentication surface is public by design, and it is where stale servers give themselves away: ssh-rsa host keys, CBC ciphers, SHA-1 key exchange and MD5 MACs still offered years after they should have been retired. Enter a host and port and this checker reads that surface live and audits it — deprecated algorithms, the modern set that should be there, and the host key fingerprint to verify out of band. The companion article SSH banners and host keys, explained covers what a banner proves and what it cannot. For the server's own configuration file, see the SSH Server Config Auditor; for open ports without banners, the Port Scanner.

Last updated:

Check an SSH server

Live check connects from the SysOSX checker to the host on the port you give (default 22) and reads only the pre-authentication banner and KEXINIT. sysosx.com itself and private or loopback addresses cannot be checked.

🔒 The probe runs on the SysOSX checker, not in your browser: it opens one TCP connection, reads the banner, exchanges KEXINIT packets and completes one key exchange to fetch the host key — it never logs in, never tries a password and never sends anything after the key-exchange reply. The host and port you type are the only things sent.

What an SSH server reveals before login

The banner is the first line an SSH server sends on every connection: SSH-2.0- followed by a software version string, defined by RFC 4253. OpenSSH servers usually name themselves and their version (SSH-2.0-OpenSSH_9.6p1); some operators strip or replace it — github.com answers with an opaque build id that discloses no version at all. The banner is a claim, not a proof: any server can print any string, and scanners record it as-is.

KEXINIT is the first encrypted-transport packet each side sends, and it is entirely plaintext: two name-lists per category naming every key-exchange method, host key algorithm, cipher, MAC and compression algorithm the server will accept, in each direction. Nothing in KEXINIT is secret — it is the menu from which the client and server negotiate the session. A menu that still lists diffie-hellman-group1-sha1 or arcfour is a server whose configuration has not been reviewed in a very long time.

The host key is the server's identity. Completing one key exchange (this checker uses curve25519-sha256) makes the server present its host key blob, whose SHA256 fingerprint is what SSH prints on first connection and what administrators publish so users can verify they reached the right machine. A fingerprint is only useful compared against a value obtained another way — a provider's documentation, a console, a known_hosts file you trust — never against a value the same connection handed you.

Scoring starts at 100 and deducts once per finding category: group1-sha1 key exchange, ssh-dss and arcfour cost 15 each; SHA-1 key exchange, ssh-rsa, CBC ciphers, weak legacy ciphers and MD5 MACs cost 10; SHA-1 MACs, plain zlib compression, an SSH-1.99 banner and a sub-2048-bit RSA host key cost 5–10; each missing piece of the modern set (curve25519-class key exchange, Ed25519, an AEAD cipher, encrypt-then-MAC) costs 5. Banner version disclosure is information only — it never deducts, and an end-of-life OpenSSH version costs at most 5. Verdicts: Healthy (90+), Needs attention (70–89), Weak (40–69), Broken (below 40).

What this checker does — and what it does not

It connects to the host and port from the checker, reads the banner, sends its own KEXINIT and parses the server's eight algorithm lists, then completes a single curve25519-sha256 key exchange to obtain the host key blob and compute its SHA256 and MD5 fingerprints and key size. The browser audits the returned data against the Mozilla OpenSSH guidelines and the usual ssh-audit deprecation lists: deprecated algorithms offered, the modern recommended set present or missing, the banner's software and version, and the served host key's type and size. Results are a 0–100 score with findings, the full algorithm tables, and CSV and JSON exports.

It does not log in, try credentials, or test who can authenticate — it stops at the key-exchange reply, before any encrypted session or user authentication exists. It does not read the server's sshd_config: a server can offer an algorithm its config never mentions (compiled defaults) and can hide one it would actually accept from a real client, because negotiation depends on what the client offers. For the config file itself, use the SSH Server Config Auditor with the file in hand.

The demo checks github.com on port 22 live. At the time this tool was built, GitHub answered with the banner SSH-2.0-9f8779a8, offered 39 algorithms including curve25519-sha256 and Ed25519, and presented an ssh-ed25519 host key whose SHA256 fingerprint matches the one GitHub publishes — with exactly one scored finding, the legacy ssh-rsa host key algorithm still on the menu, for a score of 90. Live answers can change; the demo shows whatever GitHub offers at click time.

Be honest about what a banner proves

A banner and KEXINIT read shows what the server OFFERS a stranger before authentication — not an audit of its configuration file, its user accounts, or who can actually log in. Servers can lie in banners, middleboxes can rewrite algorithm lists, and the negotiated result depends on the client: this checker's offers are one client's view, and a different client may negotiate a different set from the same lists.

A host key fingerprint proves nothing on its own. It identifies the key this connection presented; it becomes evidence only when compared with a fingerprint obtained out of band. And a clean score means the public menu is modern — it says nothing about password policy, key management, patching of the running daemon, or anything else behind the login prompt.

Key facts

BannerThe version line an SSH server sends first, e.g. SSH-2.0-OpenSSH_9.6p1 (RFC 4253 §4.2). Public, unauthenticated, and trivially forged — a claim about the software, not a measurement of it.
KEXINITThe first transport packet each side sends, listing every algorithm it accepts: key exchange, host key, ciphers, MACs and compression, per direction. Negotiation picks the first client preference the server also lists.
Host keyThe server's long-term identity key (Ed25519, ECDSA or RSA). Its fingerprint is what SSH shows on first connection; verify it out of band or the check is circular.
SHA256 fingerprintBase64 of the SHA-256 hash of the host key blob, as printed by ssh-keygen -lf and in the first-connection prompt. The MD5 colon-hex form is the older equivalent, kept for comparison with legacy records.
curve25519-sha256The modern elliptic-curve key exchange this checker completes to fetch the host key: fast, small keys, and the first choice in the Mozilla OpenSSH guidelines.
ssh-rsaThe original RSA host key / signature algorithm, which signs with SHA-1. Deprecated since OpenSSH 8.8 disabled it by default; rsa-sha2-256/512 are the SHA-2 successors with the same keys.
AEAD ciphers[email protected] and the AES-GCM modes authenticate as they encrypt, so no separate MAC weakness applies. CBC modes are the deprecated alternative — malleable without encrypt-then-MAC.
Spec referencesRFC 4253 — SSH Transport Layer Protocol · Mozilla OpenSSH security guidelines

Frequently asked questions

Is reading a server's banner and KEXINIT an attack?

No — it is the opening of a normal SSH connection, stopped early. Every SSH client receives the banner and the KEXINIT lists simply by connecting; this checker reads them, completes one key exchange to fetch the host key, and disconnects before authentication. It never tries a username or password. It is the same information ssh-keyscan and ssh -vv print, which administrators run against their own servers routinely.

The fingerprint does not match the one I expected — what now?

Stop and find out why before connecting for real. A changed host key can be legitimate — a rebuilt server, a new host, a load balancer with its own key — or it can mean the connection is being intercepted. Compare against a fingerprint obtained out of band: the provider's documentation or console, the server's own ssh-keygen -lf output, or a known_hosts entry you trust. Never accept a new key just because the same connection that presented it also vouches for it.

My server still offers ssh-rsa and CBC — should I remove them?

Almost certainly yes, with one compatibility check first. ssh-rsa (the SHA-1 signature algorithm) has been disabled by default since OpenSSH 8.8, and CBC ciphers have been off the recommended lists for a decade; the clients that still need them are very old. Remove them in sshd_config (HostKeyAlgorithms, Ciphers, MACs, KexAlgorithms), reload, and re-check here: the offer list should shrink to the modern set. Keep rsa-sha2-512/256 if you serve RSA host keys — same keys, SHA-2 signatures.