A Key Revocation List (KRL) is an OpenSSH file listing revoked public keys and certificates that the SSH server refuses, even if they are otherwise valid. Administrators build it with ssh-keygen and reference it from the server configuration. It lets teams cut off a leaked key or long-lived SSH certificate without editing every authorized_keys file.
What a KRL is for in OpenSSH
A Key Revocation List (KRL) gives OpenSSH a central deny list for public keys and certificates that must no longer be accepted. That matters when a key is leaked, a contractor leaves, or an SSH certificate needs to be cut off quickly without chasing every server-side key file or individual host configuration.
The core value of a KRL is that it changes revocation from scattered local cleanup into one server-side trust decision. Instead of removing access by editing many authorized_keys entries, administrators publish a revocation source and make sshd enforce it consistently. That is especially important in estates where SSH access is spread across many hosts, teams, and automation paths.
Because a KRL can revoke both keys and certificates, it sits between simple key sprawl and fuller SSH certificate governance. For organisations comparing trust models, SSH Keys vs SSH Certificates is useful background on why revocation and trust boundaries become more important as SSH access scales.
How KRL-based revocation works
A KRL is generated with ssh-keygen and then referenced by the SSH server configuration, so revocation is enforced at authentication time rather than left to human memory. That means the server can reject a revoked public key or certificate even if the credential still looks valid on paper.
This model is useful when revocation must happen faster than expiry. A leaked deploy key, a copied admin key, or a compromised SSH certificate can all remain technically usable until something actively stops them. The KRL is the mechanism that turns that revocation decision into a control the server can apply everywhere it is configured to trust it.
The same pattern also explains why KRLs are often used alongside broader SSH hygiene, not instead of it. Inventory, rotation, certificate lifetimes, and centralised key control still matter, because a KRL only blocks credentials the organisation already knows about and has published into the revocation list.
For teams formalising that operating model, the SSH Key Management Policy Template gives a practical policy frame for revocation, lifetime, inventory, and review rules.
Operational situations where KRLs matter most
KRLs become most valuable in incidents and lifecycle transitions: leaked private keys, offboarding, misissued certificates, or trust changes after a compromise. In those cases, the important question is not only whether a credential should be expired, but whether it should be refused immediately across every SSH server that relies on the KRL.
They are also useful where SSH access is tied to privileged administration or automation. A revoked key may belong to a human administrator, but it may also belong to a CI job, a bastion workflow, or a long-lived automation path. The operational challenge is the same, cut off the credential without creating blind spots in service access.
That is why KRLs are usually part of a broader incident response posture. When SSH material is exposed, responders often need to revoke keys, invalidate certificates, review authorized access paths, and confirm that no alternate trust path remains active. SSH Key Compromise Response Playbook covers that response pattern in more depth.
KRLs versus other ways to stop SSH access
A KRL is not the only way to remove SSH access, but it is one of the few mechanisms that can centralise revocation without editing every host or every user file. That makes it especially useful when the same key material is trusted in many places, or when certificate-based SSH access needs a server-enforced kill switch.
Its limitations are equally important. If the organisation has weak inventory, poor key ownership, or fragmented server configuration, a KRL may exist but not fully protect the environment. In other words, the revocation list is only as effective as the trust distribution around it. That is why teams often pair KRL governance with certificate strategy, offboarding, and periodic access review.
For a broader view of how centralised SSH trust and revocation decisions fit together, SSH Certificates vs X.509 explains the different trust models, and Leaked Credential and Secret Incident Response Playbook shows how revocation fits into broader secret-response work.
Risk and Threat Considerations
A KRL reduces the blast radius of leaked SSH keys and certificates, but only if it is current, distributed to the systems that matter, and used as part of a complete trust model. The main risk is false confidence: organisations may assume a key is revoked everywhere when some hosts are still relying on stale configuration or alternate trust paths.
Failure mechanism: Attackers or insiders who obtain a valid SSH key, certificate, or copied credential can keep using it until revocation is enforced on the servers that actually trust it, and any gap in KRL propagation, server configuration, or inventory leaves a residual access path.
Impact: That gap can preserve privileged shell access, support lateral movement, or let a compromised automation identity continue to operate after the organisation believes access has been cut off.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | KRLs enforce revocation of SSH authenticators and certificates. |
| IA-9 — Service Identification and Authentication | SSH keys and certificates often authenticate services and automation paths. | |
| AC-2 — Account Management | KRLs support removal of SSH access during offboarding and lifecycle changes. | |
| Recommendation — Use IA-5 to revoke compromised SSH keys and certificates promptly. Apply IA-9 to manage revocation for service and automation SSH credentials. Tie KRL updates to account offboarding and access removal events. | ||
| ISO/IEC 27001:2022 | A.5.16 — Identity management | KRL governance depends on identifying and revoking trusted SSH identities. |
| Recommendation — Maintain an accurate identity inventory for SSH access and revocation. | ||
| CIS Controls v8 | CIS-5 — Account Management | Central revocation of SSH keys supports account lifecycle control and offboarding. |
| Recommendation — Remove SSH access paths quickly when accounts, roles, or contractors change. | ||
Practitioner Guidance
Why practitioners should care: Treat KRLs as an enforcement control, not a cleanup step. If your SSH estate spans many servers, build the revocation process so it is fast, repeatable, and auditable, with clear ownership for publishing and distributing the list.
What to watch for: Repeated emergency revocations, stale server configuration, and uncertainty about where a credential is trusted are signs that revocation governance is weaker than the organisation thinks. In that case, the real fix is not just adding more entries to the KRL, but improving key inventory and trust-path control.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org