ssh-add
Adds private key identities to the authentication agent
Last updated
Adds private key identities to the authentication agent
Last updated
ssh-add
adds private key identities to the authentication agent, ssh-agent. When run without arguments, it adds the files ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, and ~/.ssh/id_ed25519.
After loading a private key, ssh-add will try to load corresponding certificate information from the filename obtained by appending -cert.pub to the name of the private key file.
ssh-add [-cDdkLlqvXx] [-E fingerprint_hash] [-t life] [file ...]
ssh-add [option] | Effect |
| Lists fingerprints of all identities currently represented by the agent. |
| Lists public key parameters of all identities currently represented by the agent. |
| Delete identity |
| Delete all identities |
| Lock agent |
| Unlock Agent |
| Set lifetime (in seconds) when adding identities. |
| Specifies the hash algorithm used when displaying key fingerprints. Valid options are: “md5” and “sha256”. The default is “sha256”. |