The first yes on a jump host is a standing decision
A device is down. A customer is on the phone. You ssh to the jump host, or through it to the machine behind, and the client says it cannot establish the authenticity of the host and asks whether you want to continue. You type yes, because the next ten minutes matter more than a fingerprint nobody has to hand.
That yes feels like dismissing a dialog. It is closer to signing something. This post is about what the answer commits you to, who inherits it, and what a check looks like when it does not depend on the path being honest. The first part is general SSH behaviour. The later parts say what we do in RescueShell, and where that stops.
The 2 a.m. "yes": what actually happens at first connect
On a first connection the client has nothing to compare against. The server presents a public host key, the client shows its fingerprint, and the only thing standing between you and the connection is you. Answer yes and the key is written to known_hosts. From then on the client compares silently and only speaks up if the key changes.
So the check works on every connection except the one that mattered. Whatever was true at that moment, an honest server or something sitting in between, is now the baseline. A later connection that matches proves only that it matches the first one.
Nobody does this carelessly. It happens at 2 a.m. or with someone waiting, by whoever happens to be on call, and the fingerprint on screen is a string of characters with nothing to set it against. Typing yes is the only way to get on with the job. The decision is rarely written anywhere.
One person's answer becomes the fleet's baseline
The entry does not stay with the person who made it. Someone gets a shell working and pastes the resulting line from known_hosts into the team wiki under "connecting to the relay". A colleague copies it. A config template for new laptops ships with it. A provisioning script sets StrictHostKeyChecking=accept-new so that nobody gets prompted again, which is the same yes, made once for everyone and for every future host.
Months later, a good many entries trace back to one tired answer. Nobody can say who gave it, what they compared it against, or whether they compared anything at all. Reviewing that is awkward, because there is nothing to review: no ticket, no name, no fingerprint recorded anywhere except the file that now defends itself.
Warning fatigue: why a changed key gets accepted too
The second half of the habit is what happens when the key changes. The client refuses with a loud warning about a possible man-in-the-middle attack, and the fix everybody knows is to delete the line and connect again.
Most of the time that is correct. A device was reimaged and generated a new host key. A router was replaced under warranty. A relay was rebuilt. In a fleet of any size these happen often enough that the warning is nearly always a false alarm, and people learn it as a chore: delete the line, yes, carry on.
That is the trouble. When nearly every change is routine, the rare real one looks routine too, and the person looking at it has no way to tell. A check that is dismissed by habit protects only as well as the habit does. The second yes is the first one again, with less thought behind it.
Who vouches for the key when the path runs through the relay
On a direct connection, the fingerprint you are shown comes from the device. On a relayed path it may come through whoever runs the relay, and a first yes there leans on the party you would most want to be able to distrust. We covered how that plays out for reverse tunnels in an earlier post and will not go through it again. What matters here is the consequence: for a check to be worth anything on that path, the evidence has to arrive by some other road.
What a better check looks like: evidence the path cannot supply
Three parts, none of them exotic.
A fingerprint from somewhere else, compared in full. The device knows its own host key. If you can read the fingerprint off the device itself, for example from the installer's output at install time, you have something the path did not touch. Comparing the first few characters and the last few is a habit worth dropping. A full comparison is tedious, and tedious is the point.
Pin it after that. Once the fingerprint has been checked against the independent source, the client stores it and compares every later connection against that stored value.
Refuse on change, and make accepting a separate act. A changed key should stop the connection and stay stopped until somebody with the authority to say so decides it is legitimate. Deleting a line is a private act. Accepting a change on someone else's behalf is a decision that should have an owner, and your own change log is where that owner gets written down.
This is how we built it. The CLI and the browser shell check the device's host key: you paste the fingerprint the device printed on its first connection, and a later change is refused. The relay also records the first host key it sees and refuses shells if it changes, until an admin accepts the new key.
A caveat that matters more than any of the mechanics. A pasted fingerprint helps only if it came from somewhere the relay did not control. Copy it from a page the relay served, or from a message that passed through the same path, and you have done trust on first use with extra typing. The discipline is in where the string comes from.
Making acceptance a recorded act, not a reflex
A pin that can be changed by anyone, silently, is a suggestion. What turns it into a decision is that accepting is a separate action, taken deliberately, and that it leaves something behind.
In RescueShell, key changes and host key accepts are recorded, as fingerprints only and never key bodies. Refused sessions are recorded too, and admins can see who opened a shell, on which device and when. That gives you the raw material for the questions that matter after the fact: which fingerprint was accepted, and when, and which sessions were turned away before it.
What we do not claim is that the record explains itself. It will not say why a key changed. The reason, a reimaged unit or a swapped board, lives in your own ticket or change log, and the habit worth building is to write one line there before you click accept: what changed, and how you know. If a device has been reimaged on purpose, you already know. If nobody can say why a key changed, that is the thing to find out first.
The same goes for the first connection. Whoever pastes the fingerprint should be able to say where it came from.
Where this does not fit
- Accepting a change is still a human decision. We can make it explicit and put it on record. We cannot make it correct. An admin who accepts under pressure without knowing why the key changed has made the same mistake as before, in a more visible place.
- **It is more steps than clicking
yes.** For a handful of machines on a bench, which you can reach in person, a plain jump host with aknown_hostsfile you checked once may be the sensible choice. The extra care pays back as the fleet and the number of people grow. - The paste must come from somewhere the relay did not control. We cannot check that for you.
- Some devices attest instead of paste. When many devices are enrolled in one pass, the pin can rest on an attestation instead of a pasted fingerprint. That is the weaker route if the enrolment secret ever leaks, and the details are in the earlier post linked above.
- Metadata stays visible to us. Who connected where, and when, is something the backend sees. A backend or relay owner can still refuse or drop sessions.
- We have not tested the hard case. Our goal is that full control of our backend and relay opens zero shells. No red-team exercise has tested it, so it is a goal and not a result.
- No recording, no export. The log lists events. It is not a session recording and it is not an audit export, and we offer no uptime SLA.
Questions still open on our side: how a team should hand the first fingerprint to a colleague without it passing back through the path, and how often a team should re-check pins that have not changed. We do not have a rule that suits every fleet.
RescueShell: €0.10 a device a month, billed yearly, at least €6 a year, plus VAT. Thirty-day trial, no card for your first device, and the clock starts when it connects. Until a card is added, shell traffic is capped at 50 MB in total and a second device needs a card. Hosted in the EU, exceptions listed. Try it