Use it when securing automation execution around SSH Key Management. Keep source/revision trust, triggering principal, workload identity, policy/approval, runner/control-plane state, target authorization and verified outcome as separate security proof boundaries.
SSH Key Management
SSH Key Management secures fleet-wide automation SSH access by governing key issuance, host trust, authorized principals, restrictions, inventory, rotation, revocation and detection of unmanaged keys.
1. SSH key management: inventory, rotation, restrictions, CA-signed certificates.
2. Remove stale keys.
3. Restrict options (from=, command=).
4. Protect private keys.
5. Audit logins.
key/cert → authorized → login audited
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
SSH access policy → automation identity/CA principal → key issuance → host-trust source → authorized placement/restrictions → session authentication → command/elevation boundary → fleet drift audit → rotation/revocation → old-access rejection
Healthy evidence: approved fingerprints/principals match source of truth, host trust is enforced, key use is restricted/audited and obsolete access is removed fleet-wide.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: authorized_keys drifts unmanaged, host checking is disabled, shared private keys span environments or rotation changes only the controller copy.
SSH Key Management shows governed key/principal state across inspected targets, but it does not show endpoint integrity or every command authorization path.
Step 3 Common mistakes Narrow the fault
- Private keys without passphrase on shared hosts.
- Keys never removed when people leave.
Step 4 Where it fails Narrow the fault
Where SSH Key Management usually goes wrong: host-key identity, authentication, channel/command exit semantics, timeout ambiguity and target verification.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- SSH key works ≠ key should exist.
- Key fingerprint known ≠ target placement compliant.
- Central CA ≠ unrestricted principals safe.
- Key rotated in controller ≠ key removed from fleet.
- Key inventory (where each key is authorised) — visibility
- SSH certificates or short-lived keys — rotation
- Passphrase/agent/vault protection — storage
ReferenceWhat it is1 section · depth on demand
Core model
Use dedicated automation principals, prefer short-lived SSH certificates where practical, maintain authoritative host-key trust, inventory fingerprints or CA principals, restrict commands/source/elevation, scan for drift, rotate systematically and remove obsolete access with negative verification.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Automation Security → SSH Key Management owns fleet governance. Secrets & Credentials → SSH Keys owns individual key material handling; platform SSH branches own daemon configuration.
In depth
SSH key management for automation keeps an inventory of which keys can access which systems, rotates them, and removes keys that are no longer needed. Unmanaged keys accumulate and become permanent backdoors.
| Practice | Tooling |
|---|---|
| Central distribution | Ansible authorized_key with exclusive: true |
| Short-lived SSH certificates | Vault SSH CA, step-ca, Teleport |
| Key inventory and scanning | Find unknown keys in authorized_keys |
| Passphrase/agent for interactive keys | Protect stolen key files |
Prefer SSH certificates for automation at scale: hosts trust one CA, and access expires automatically.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Security > SSH Key Management. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
SSH Key Management security proof-boundary map
Fast identity, handling/execution, effective-outcome and closure proof boundaries for SSH Key Management.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trust / identity | Source revision, trigger, workload identity and policy/approval are explicit and immutable | Mutable code or shared admin identity reaches privileged execution without attributable trust decisions |
| Execution / isolation | Runner/controller, dependencies, credentials and target permissions are bounded to the workflow | Persistent privileged runners, broad secrets or floating dependencies widen the execution trust boundary |
| Effective outcome | Target-side authentication/authorization or secure control outcome is independently observed | Tool/job success substitutes for target authorization, effective state or workload proof |
| Closure / next action | Rotation/revocation, denied-path tests, audit evidence and residual exceptions are explicit | Old credentials remain valid, policy bypass exists, audit gaps are unknown or broad success is inferred from one signal |