|Linux / Unix Command: ssh-add|
NAMEssh-add - adds RSA or DSA identities to the authentication agent
SYNOPSISssh-add [-lLdDxX ] [-t life ] [file ... ]
ssh-add -s reader
ssh-add -e reader
DESCRIPTIONssh-add adds RSA or DSA identities to the authentication agent, ssh-agent1. When run without arguments, it adds the files $HOME/.ssh/id_rsa $HOME/.ssh/id_dsa and $HOME/.ssh/identity Alternative file names can be given on the command line. If any file requires a passphrase, ssh-add asks for the passphrase from the user. The passphrase is read from the user's tty. ssh-add retries the last passphrase if multiple identity files are given.
The authentication agent must be running and must be an ancestor of the current process for ssh-add to work.
The options are as follows:
- Lists fingerprints of all identities currently represented by the agent.
- Lists public key parameters of all identities currently represented by the agent.
- Instead of adding the identity, removes the identity from the agent.
- Deletes all identities from the agent.
- Lock the agent with a password.
- Unlock the agent.
- -t life
- Set a maximum lifetime when adding identities to an agent. The lifetime may be specified in seconds or in a time format specified in sshd(8).
- -s reader
- Add key in smartcard reader
- -e reader
- Remove key in smartcard reader
SEE ALSOssh(1), ssh-agent1, ssh-keygen1, sshd(8)
Important: Use the man command (% man) to see how a command is used on your particular computer.