PAM usually governs interactive privileged sessions, but SSH keys can be placed directly on servers, shared across hosts, or embedded in workflows. That means access may never pass through the PAM workflow the organisation expects to control. The practical risk is a parallel access path with weaker visibility and poorer accountability.
Why SSH Keys Slip Past PAM’s Usual Control Point
ssh key often exist outside the interactive login flow that many PAM programmes were built to broker. If a key is already installed in authorized_keys, copied between hosts, or consumed by automation, the session can start without a checkout, approval, or session proxy. That creates a parallel access path that PAM may not see unless SSH key inventory and usage are explicitly governed.
That distinction matters because PAM is strongest when it can mediate a live privileged session. SSH keys can authenticate directly to the target system, so the control point moves from “session brokerage” to “key lifecycle and placement.” If the organisation only protects the console path, the real privilege may live in files, scripts, deploy jobs, and bastion exceptions.
SSH certificates and bastions can reduce that gap, but only when they are actually used as the enforced path rather than an optional standard. The practical question is not whether PAM exists, but whether the SSH credential path is forced through the same approval, recording, and revocation model as interactive admin access.
Where the Blind Spots Usually Form
SSH keys bypass PAM when the key is treated as an operating detail instead of an access instrument. Common failure modes include shared keys across hosts, long-lived private keys in developer machines or CI jobs, orphaned authorized_keys entries, and unmanaged break-glass keys that were never folded back into governance. The control weakness is not SSH itself, it is distributed credential placement with weak lifecycle oversight.
Automation makes this more pronounced because non-interactive access often gets justified as “necessary for uptime” and then left to expand. If a key is embedded in deployment tooling, the access path can survive user offboarding, approval changes, or PAM policy updates. That is why key rotation, host-by-host discovery, and removal of unused keys matter as much as session recording.
For environments with cloud administration or third-party remote support, the same pattern can appear through vendor keys, SSH jump hosts, or account reset workflows that never touch the expected PAM journey. The result is fragmented accountability: one team thinks PAM owns privileged access, while another team quietly operates direct key-based entry.
How to Close the Gap Without Breaking SSH Operations
The right fix is to govern SSH keys as privileged access material, not as routine configuration. SSH Key and SSH Certificate Management Guide is the practical place to start when you need discovery, rotation, and orphaned-key removal rather than ad hoc cleanup. For the access model itself, Privileged Access Management Guide helps frame where vaulting, JIT, and session oversight belong.
Where SSH is used for pipelines or automated server changes, the control objective should be to eliminate standing keys that outlive the job, environment, or owner. A direct-path key is acceptable only if it is inventoryed, scoped, time-bounded where possible, and revocable without manual archaeology. If you cannot answer who issued the key, where it is deployed, and how quickly it can be removed, PAM is not really in control.
For wider privileged-access design, PAM Buyer’s Guide and Privileged Session Management Guide show why session controls alone are insufficient unless they are paired with credential governance. Mature programmes also use Just-in-Time Access and Zero Standing Privilege Guide to remove the assumption that SSH access should persist by default.
Risk and Threat Considerations
SSH keys create a durable bypass when they are copied into servers, scripts, CI jobs, or third-party access paths that sit outside PAM workflows. That increases the chance of hidden privileged access, weak attribution, and delayed revocation after compromise or staff changes.
Failure mechanism: An attacker or insider who obtains a private key can authenticate directly to the target host, reuse the key across systems, or plant it in automation so the access survives normal PAM governance and session monitoring.
Impact: The organisation can lose visibility into who accessed what, on which host, and under which approval path, which raises the blast radius of compromise and makes containment slower.
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 sets 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 | SSH key bypasses are a credential lifecycle problem. |
| AC-6 — Least Privilege | Direct SSH access often creates excess privilege beyond PAM intent. | |
| AU-2 — Event Logging | Bypassed PAM paths reduce visibility and accountability for SSH sessions. | |
| Recommendation — Manage SSH keys with issuance, rotation, revocation, and storage controls. Restrict SSH-based admin access to the minimum required privilege. Log SSH authentication and privileged command activity wherever direct access exists. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | SSH bypasses are fundamentally an access-control governance issue. |
| A.8.5 — Secure authentication | SSH keys are authentication material that must be controlled consistently. | |
| Recommendation — Define and enforce who may use SSH access paths and under what conditions. Protect SSH key authentication with strong issuance, storage, and revocation rules. | ||
Practitioner Guidance
What to verify: Confirm whether every SSH path is discoverable, owned, and revocable, including keys in authorized_keys, CI/CD variables, admin workstations, and vendor-managed access. If a key can reach production without a recorded approval or a compensating control, treat that as a privileged-access exception.
Decision rule: If SSH is used for administrative access, decide whether the control owner is PAM, the platform team, or the system owner, then enforce one lifecycle for issuance, rotation, and removal. A mixed model with “some keys in PAM, some outside” is usually where accountability breaks down.
Common mistake: Teams often focus on rotating the private key while leaving the server-side authorization entry, shared deployment secret, or automation reference untouched. That fixes the symptom but not the bypass.
Practitioner takeaway: SSH keys only “bypass PAM” when organisations allow direct credential placement to become an ungoverned access path; the real control objective is to make key lifecycle, scope, and revocation as enforceable as session brokerage.
Related resources from NHI Mgmt Group
- What breaks when privileged users can place SSH keys directly on target systems outside PAM controls?
- What happens when SSH keys are used to bypass privileged access controls?
- What breaks when traditional PAM only finds a fraction of SSH keys?
- What breaks when organisations rely on traditional PAM tools to manage passwords and SSH keys at scale?