Part of the T2D drill kit.
Use it for: one group of hosts you reach over SSH (a bastion, a fleet behind configuration management, a Git server), one algorithm family, on staging hosts first.
You leave with: a Time to Distrust with a date and the list of keys, clients and automations that broke.
Time box: two hours for the first run.
Marks are the same as in the TLS runbook: Run by QRAMM means we ran it in our lab on 3 December 2026 with OpenSSH 10.5p1 and the output is in the lab results.
1. Three places
| # | Place | Setting on the server | What breaks when you refuse a family there |
|---|---|---|---|
| 1 | The host's own key | HostKeyAlgorithms | Clients that pinned the old host key, or accept only that family |
| 2 | The keys users and automations log in with | PubkeyAcceptedAlgorithms | Every person, pipeline and service account whose key is of that family. This is usually the long list |
| 3 | Key exchange | KexAlgorithms | Old clients and libraries that can't do the groups you kept |
2. Baseline
# What the server would use with its current configuration (run on the host) sshd -T | grep -i -E '^(hostkeyalgorithms|pubkeyacceptedalgorithms|kexalgorithms)' # Which host key types it offers, read from the wire (Run by QRAMM) ssh-keyscan -p PORT HOST # What this client can do ssh -Q key ; ssh -Q kex
Then list the keys that can log in, by type. Count the lines of each authorized_keys file by their first word (ssh-rsa, ssh-ed25519, ecdsa-sha2-nistp256). That count is the size of place 2.
3. The switches
In sshd_config, a list that begins with - removes the named algorithms from the defaults (OpenSSH manual). Check the file with sshd -t before you reload.
# Refuse RSA for host keys and for login keys (Run by QRAMM, phase B) HostKeyAlgorithms -ssh-rsa,rsa-sha2-256,rsa-sha2-512 PubkeyAcceptedAlgorithms -ssh-rsa,rsa-sha2-256,rsa-sha2-512 # Refuse classical-only key exchange, keep the hybrid post-quantum groups (Run by QRAMM, phase C) KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com
4. The probe
| You switched | Probe | It took when |
|---|---|---|
| Host keys, RSA | ssh -o HostKeyAlgorithms=rsa-sha2-512,rsa-sha2-256 -p PORT USER@HOST true | It fails with no common algorithm |
| Login keys, RSA | Log in with an RSA key | Permission denied (publickey) |
| Key exchange | ssh -o KexAlgorithms=curve25519-sha256,ecdh-sha2-nistp256 -p PORT USER@HOST true | It fails with no common algorithm |
| Any | Log in as each person and automation in scope | Each still works, on a family you kept |
5. What our lab showed
- Refusing RSA (phase B) broke exactly two things: the login with an RSA key, and the client that accepted only an RSA host key.
- Refusing classical-only key exchange (phase C) broke only the client limited to classical groups. A client at its defaults didn't notice: OpenSSH 10.5 already prefers a hybrid group.
- Phase D is the reverse case: only RSA allowed. The Ed25519 login failed and the RSA login worked, so the same two settings refuse elliptic-curve keys when you need them to. Our OpenSSH also lists a hybrid key type,
ssh-mldsa44-ed25519@openssh.com, which we didn't drill.
6. Write it down
Same as the TLS runbook, section 7: the result line, one register row with protocol set to SSH, a ticket for each key or automation that broke, and what you didn't test (configuration management, Git over SSH, network devices, anything with an embedded SSH library).
Time to Distrust (T2D) is QRAMM's term, not a standard metric.