Linux Commands Helper
💬 Your AI-powered Linux assistant
ssh-add Command - Add Private Keys to the SSH Authentication Agent
The ssh-add command adds private key identities to the ssh-agent
authentication agent, allowing you to use SSH keys without entering your passphrase every time.
Syntax
ssh-add [options] [file ...]
Examples
ssh-add ~/.ssh/id_rsa
Add the default private key to the agent.
ssh-add -l
List fingerprints of all identities currently represented by the agent.
ssh-add -D
Delete all identities from the agent.
Notes
- ssh-add is typically used with
ssh-agent
to manage multiple SSH keys. - Use
ssh-keygen
to generate new SSH key pairs. - Keys added with ssh-add are available for the duration of the session or until removed.