ssh-add
Manage loaded SSH keys in the ssh-agent. tldr-pages
On several platforms
Several platforms
Manage loaded SSH keys in the ssh-agent. Ensure that ssh-agent is up and running for the keys to be loaded in it.
Add the default SSH keys in ~/.ssh to the ssh-agent
ssh-addIdentifyAdd a specific key to the ssh-agent
ssh-add path/to/private_keyIdentifyList fingerprints of currently loaded keys
ssh-add -lIdentifyDelete a key from the ssh-agent
ssh-add -d path/to/private_keyIdentifyDelete all currently loaded keys from the ssh-agent
ssh-add -DIdentifyAdd a key to the ssh-agent and the keychain
ssh-add -K path/to/private_keyIdentify