By NHI Mgmt Group Editorial TeamBased on StrongDM: “How to Configure SSH Certificate-Based Authentication (Tutorial)” (June 25, 2025)

TL;DR: SSH certificate-based authentication replaces password-based SSH access with cryptographic key pairs and certificates, reducing brute-force exposure while enabling tighter user management, revocation, and logging, according to StrongDM. For IAM teams, the real value is not the certificate itself but the governance model around issuance, permissions, rotation, and auditability.


At a glance

What this is: This tutorial shows how SSH certificate-based authentication shifts DevOps access away from passwords and toward cryptographic keys and certificates with tighter control over access and revocation.

Why it matters: It matters because SSH access is still a privileged pathway in many infrastructure environments, and the governance around issuance, rotation, and audit trails determines whether certificates reduce risk or simply replace one credential form with another.


Context

SSH certificate-based authentication is a way to prove identity for SSH sessions using signed certificates rather than passwords. In practice, that changes the control point from human-entered secrets to managed cryptographic credentials, which is why it sits squarely inside NHI governance for DevOps access.

The operational problem is not just authentication strength. Enterprises also need to manage certificate issuance, file permissions, expiry, revocation, and logging in a way that matches the speed of infrastructure change. When those controls are weak, certificates become another credential type to govern rather than a meaningful access-control improvement.

For DevOps teams, the real issue is whether SSH access can be centrally governed without losing traceability or slowing delivery. That is why certificate-based authentication is best read as an identity and lifecycle problem, not as a pure crypto feature.


Key questions

Q: What breaks when SSH access still relies on shared credentials?

A: Shared credentials break attribution, make revocation slow, and make access reviews less meaningful. If multiple people or processes can use the same key, the organisation cannot prove who created a session, who used it, or whether the access should still exist. The control gap is identity ownership, not encryption.

Q: Why do short-lived SSH certificates reduce privileged access risk?

A: Short-lived certificates limit the window in which a compromised credential can be reused. They also force access to be reissued under current policy rather than assumed indefinitely. That matters most for privileged infrastructure access, where stale credentials create lateral movement opportunities and complicate offboarding.

Q: What are the warning signs that SSH certificate governance is failing?

A: The warning signs are long expiry periods, inconsistent revocation, unclear certificate ownership, and logs that do not reliably tie access to a person or service. When teams cannot answer who issued a certificate, who used it, and when it stopped being valid, governance is already weak.

Q: How should teams balance SSH certificate controls with file permissions and logging?

A: Use file permissions to protect local key material, but do not mistake that for full access governance. Certificate controls manage trust and expiry, while logging proves use and supports review. Teams need both layers if they want access control that is both secure and explainable.


Technical breakdown

How SSH certificates change the trust model

SSH certificates extend public-key authentication by adding signed metadata about identity, validity, and allowed use. Instead of treating each key as a standalone proof of access, the server trusts a certificate authority to sign keys and attach policy-relevant attributes such as expiry or constraints. That shifts control from static key distribution to certificate issuance and validation. It also means trust is no longer embedded only in the key pair itself. The server is validating both the cryptographic proof and the issuing authority’s decision about who or what should have access.

Practical implication: treat certificate issuance and signing as a privileged control point, not just an admin convenience.

Why revocation and expiry matter more than the certificate format

A certificate-based model is only useful if expired or unwanted access can be removed quickly. Without short validity periods, explicit revocation, and consistent enforcement on the server side, SSH certificates can drift into the same standing-access problem seen with static keys. The article’s emphasis on expiration dates and revocation reflects the basic governance reality: access control only improves when credentials have a lifecycle, not just a format. That lifecycle must be visible, enforced, and auditable across users and servers.

Practical implication: align certificate validity and revocation workflows with privileged access governance, not ad hoc server administration.

How logging and file permissions support certificate governance

Certificate authentication still depends on local files, server configuration, and audit logs. If private keys are stored with weak permissions, or if SSH logs are not reviewed, the control loses much of its value. In mature environments, the certificate system is only one layer in the access-control stack. File permissions limit local exposure, while centralized logging and audit trails show who connected, from where, and under which certificate or key material. That evidence is essential for troubleshooting, incident review, and compliance evidence.

Practical implication: pair certificate deployment with strict filesystem permissions and log review so access decisions remain explainable after the fact.


Threat narrative

Attacker objective: The attacker aims to gain durable privileged access to servers and infrastructure through SSH entry points that remain easy to reuse or hard to revoke.

  1. Entry occurs through exposed or weakly protected SSH credentials, with password-based access remaining the easiest path for brute-force or reuse-based compromise.
  2. Credential access is reduced when certificate-based authentication replaces static passwords, but weak file permissions or poor key handling can still expose usable SSH material.
  3. Impact occurs when access is not centrally revoked or audited, leaving privileged SSH paths available longer than intended.
  • BeyondTrust breach 2024: A stolen BeyondTrust Remote Support API key let a China state-sponsored actor reset accounts and reach US Treasury workstations in 2024.
  • Uber breach 2022: A contractor's stolen password and MFA fatigue gave a Lapsus$-linked attacker Uber's internal tools; Uber rotated keys to many services.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

SSH certificate-based authentication is an NHI governance problem before it is a crypto problem. The article is right to focus on passwords versus certificates, but the security value comes from how the credential is issued, bounded, rotated, and revoked. If those lifecycle controls are weak, the enterprise has only changed the shape of the secret. The practitioner conclusion is to govern SSH certificates as managed NHIs, not as static configuration.

Certificate expiry creates a narrower access window, but it does not eliminate standing privilege by itself. A certificate with a long validity period or weak revocation handling still functions like a durable secret. That is why the access model matters more than the syntax of the credential. The practitioner conclusion is to treat validity duration and revocation enforcement as first-class controls in privileged access design.

SSH auditability depends on whether certificate use is centralised enough to prove who had access and when. The article’s emphasis on logging and centralized management points to a broader truth: traceability is part of the control, not a postscript. Without reliable logs, review and incident investigation remain partial. The practitioner conclusion is to make audit evidence a design requirement, not an afterthought.

SSH certificate programmes fail when file-level hygiene is treated as sufficient governance. Strong file permissions matter, but they do not solve identity sprawl, privilege scope, or offboarding. The article surfaces a common gap in infrastructure teams: securing the client path while leaving issuance and revocation loosely governed. The practitioner conclusion is to align local protection with lifecycle enforcement across the SSH estate.

Ephemeral credential trust debt: SSH certificates reduce dependence on passwords, but every temporary credential still creates trust debt if the organisation cannot prove who issued it, who used it, and when it stopped being valid. The practitioner conclusion is to measure certificate governance as a lifecycle control, not a one-time hardening task.

From our research library:

What this signals

Ephemeral credential trust debt: SSH certificate programmes reduce password exposure, but they also create a new governance burden around issuance, renewal, and revocation. If those controls are not centralised, the organisation simply moves from one unmanaged credential problem to another.

The strongest operational signal is whether access can be reissued and revoked faster than the infrastructure changes it supports. That is where SSH certificates intersect with privileged access management, because auditability and lifecycle control determine whether the model is actually safer in production.


For practitioners

  • Define SSH certificate issuance authority Separate who can mint certificates from who can administer servers, and document the approval path for each trust boundary.
  • Shorten certificate validity windows Use brief certificate lifetimes for privileged SSH access so the credential naturally expires before it becomes standing access.
  • Enforce strict private key permissions Verify that SSH private keys remain readable only by the intended user and that .ssh directories are not broadly exposed.
  • Centralise SSH audit trails Collect server-side authentication logs and certificate use records so access reviews can confirm who connected, from where, and under which credential.

Key takeaways

  • SSH certificate-based authentication reduces password exposure, but the governance value comes from how certificates are issued, bounded, revoked, and audited.
  • Weak file permissions, long-lived certificates, and poor logging can turn certificate-based SSH into another standing-access problem.
  • Teams should treat SSH certificates as privileged non-human identities and tie them to centralized lifecycle controls.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe article centers on replacing password SSH access with certificate-based authentication.
NHI-07 — Long-Lived SecretsThe governance problem is whether SSH credentials remain valid longer than intended.
Recommendation — Replace password-based SSH access with certificate-backed authentication and enforce trust at issuance time. Shorten SSH credential lifetimes and revoke any certificate that outlives its intended access window.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSSH certificates and keys are authenticators whose lifecycle must be controlled.
Recommendation — Manage SSH authenticators through issuance, rotation, and revocation controls under IA-5.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about governing access permissions for privileged SSH sessions.
Recommendation — Apply PR.AA-05 to align SSH certificate permissions with least-privilege access decisions.
CIS Controls v8CIS-5 — Account ManagementSSH certificate access depends on disciplined account and credential lifecycle management.
Recommendation — Use account management controls to remove stale SSH access and verify certificate ownership.

Key terms

  • SSH Certificate: An SSH certificate is a signed credential that lets a server trust an identity without relying on a static key alone. In NHI terms, it is a short-lived machine credential whose security depends on issuance policy, principal validation, and where the trust anchor is accepted.
  • Certificate Authority Services: Certificate Authority Services are the trust services that issue and manage digital certificates for users, applications, and machines. They anchor encrypted communication by proving identity and supporting certificate lifecycle controls such as issuance, renewal, revocation, and validation across enterprise systems.
  • Credential Lifecycle: Credential lifecycle is the process of issuing, rotating, expiring, and revoking secrets, certificates, and tokens across their usable life. For non-human identities, lifecycle discipline is the core control that separates temporary access from persistent exposure.
  • Privileged Access: Privileged access is any elevated entitlement that can change systems, data, or security settings. When privilege is excessive or poorly scoped, a single compromised identity can create outsized blast radius across environments.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 8, 2026.
Updated on October 8, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org