Add private key to ssh-agent's cache
The ssh-add command adds a private key to the ssh-agent cache. The command location is /usr/bin/ssh-add
.
ssh-add [-cDdLlXx] [-t life] [file ...]
ssh-add -s pkcs11
ssh-add -e pkcs11
-D: Delete all keys in ssh-agent.
-d: Remove key from ssh-agent
-e pkcs11: Delete the key provided by the PKCS#11 shared library pkcs1.
-s pkcs11: Add the key provided by the PKCS#11 shared library pkcs1.
-L: Display the public key in ssh-agent
-l: Display keys in ssh-agent
-t life: Set a timeout for the loaded key. When the timeout expires, ssh-agent will automatically uninstall the key.
-X: Unlock ssh-agent
-x: Lock ssh-agent
ssh-add ~/.ssh/id_dsa
ssh-add -d ~/.ssh/id_xxx.pub
ssh-add -l