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

NameTypeDescription
FILEoperandPrivate identity path
-toptionLifetime
-loptionList fingerprints
-doptionRemove 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
Linux Reference