Interview Prep/Linux/SSH & Access Hardening

What are SSH certificates and why do large fleets use them?

AdvancedProductionSSH & Access Hardening
Answer

Instead of copying public keys to every authorized_keys, a CA signs user keys with an identity, allowed principals and an expiry. Servers trust the CA once:

# sshd_config
TrustedUserCAKeys /etc/ssh/user_ca.pub
AuthorizedPrincipalsFile /etc/ssh/principals/%u
ssh-keygen -s user_ca -I alice@corp -n ops -V +8h id_ed25519.pub

Short-lived certificates (hours) mean offboarding is automatic and no key sprawl exists. Host certificates also remove the "unknown host" prompt. Tools like Vault SSH, Teleport and step-ca automate issuance.

All Linux questions Roadmap: Linux

More on SSH & Access Hardening