commands
ssh-add — Load and inspect agent identities
Load identities into an available agent; -l lists fingerprints, -d removes selected identities. A lifetime limits agent retention; status 1 may indicate operation failure, 2 inability to contact agent. Use a fresh private workspace; live operations are VM-only.
Formal Syntax & Structure
linux syntaxlinux
ssh-add [-t LIFE] [FILE ...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| FILE | operand | Private identity path |
| -t | option | Lifetime |
| -l | option | List fingerprints |
| -d | option | Remove identity |
Return Value
exit status and output
Load identities into an available agent; -l lists fingerprints, -d removes selected identities. A lifetime limits agent retention; status 1 may indicate operation failure, 2 inability to contact agent.
Working Example
Example Snippetlinux
ssh-add -t 300 ./lab_ed25519