Its identity changed
A server's host key no longer matches the one on record: what that means, why HiveBoard refuses, how to check it, and when to use Forget trusted key.
In short
- The server showed a different host key from the one HiveBoard remembered — a re-keyed server, or a machine pretending to be it.
- HiveBoard refuses to connect before it offers any password, code or key, and keeps refusing until you act.
- Check the new key's fingerprint with the cluster's administrators before you trust it.
- Only for a server that really was re-keyed, use Forget trusted key… on its Connection tab.
Every SSH server has a host key, which proves which machine you have reached. The first time HiveBoard connects to a server it remembers that key. If the server later shows a different key, HiveBoard says “The server’s identity changed” and refuses to connect.
There are two explanations. The administrators re-keyed the server — after an upgrade or a reinstall — and the new key is genuine. Or something else is answering at the server’s address and pretending to be it. From your computer the two look the same, so HiveBoard refuses until you have checked.
What HiveBoard does
- It refuses before it offers any password, code or key. A machine pretending to be your cluster gets nothing that signs you in.
- It keeps refusing every time it tries, until you act. It never replaces the key on record by itself.
- It does not touch
~/.ssh/known_hosts. That file is read, and never written.
Where you see it
- The chip says Can’t connect; the status panel says “The server’s identity changed. Check it in Connections before trusting it.” with Fix.
- The connection test stops at Verify its identity: “The server presented a DIFFERENT identity from the one on record. If the administrators re-keyed it, forget the old key under Connection → Server identity; otherwise do not connect.”
- The sign-in sheet, for a server that asks for a password or a code, adds “This is not about your password. Until the host key is resolved, HiveBoard will not connect.” (or “your code”).
- The Diagnostics tab shows, under Host key, the key the server presented — its type and
SHA256:fingerprint — and its status.
Check before you trust it
- Look for an announcement from the cluster’s administrators — a re-key usually follows maintenance or an upgrade.
- Ask them, or the cluster’s documentation, for the
SHA256:fingerprint of the login node’s host key. - Compare it with the Host key line on the server’s Diagnostics tab. It must match exactly.
If you cannot confirm the new key, do not forget the old one. Wait, and ask.
Forget the old key
Only when you know the server was re-keyed:
- Open the server in Connections and go to its Connection tab.
- Under Server identity, press Forget trusted key….
- Read the dialog — “HiveBoard will trust whatever key Ember presents at the next connection, and remember it.” — and press Forget the key.
- Connect again: press Run test (a server that waits for you to sign in opens the sign-in sheet instead). This connection is a first visit, so the new key is trusted and remembered. Compare its fingerprint on the Diagnostics tab once more.
Only HiveBoard’s own known_hosts in its data folder is edited, and a copy of the old file is kept.
Other refusals about identity
A changed key is one of several things HiveBoard refuses at this step:
| The server showed | Result |
|---|---|
a key marked @revoked | refused |
| a host certificate from an authority not on record | refused |
| a host certificate for another host, or one that ran out | refused |
See Trusting a server’s identity for how the record works and how host certificates are checked.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
HiveBoard says a server's identity changed. What has it sent to the server?
- Your password, to check whether the server is genuine
- Nothing that signs you in: it refused before offering any credential
- Your public key only
Show the answer
Nothing that signs you in: it refused before offering any credential The identity is checked before any password, code or key is offered; a changed key is refused at that point.
-
When should you press Forget trusted key…?
- Whenever the identity changes, to get connected again
- Only when you know the server was re-keyed, for example after its administrators announced it
- Every few months, to keep known_hosts tidy
Show the answer
Only when you know the server was re-keyed, for example after its administrators announced it A key that changes for no reason is exactly what an impostor looks like, so forget the old key only when you know it was re-keyed.
Try it in the app
On your own computer, with HiveBoard open. Tick them off as you go.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.