Interview Prep/DevSecOps/Secrets and Identity Management

How do you manage SSH access to 500 Linux servers without distributing static keys?

IntermediateScenarioSecrets and Identity Management
Answer

Situation read → authorized_keys sprawl means nobody knows who can log in where.

What I'd do →

  1. Replace SSH with SSM Session Manager or an access proxy (Teleport, Boundary) where possible; port 22 closed.
  2. Where SSH stays, use short-lived SSH certificates from Vault SSH CA: vault write ssh-client-signer/sign/ops public_key=@id_ed25519.pub.
  3. Servers trust the CA via TrustedUserCAKeys in sshd_config; no per-user keys on hosts.
  4. Disable password auth and root login.
  5. Record sessions and ship logs centrally.

Why → Certificates expire on their own, so offboarding is automatic.

Interview tip → "SSH certificates, not keys" is the key phrase.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management