snippetbashTip
ssh-add — Manage loaded SSH keys in the `ssh-agent`. Ensure that `ssh-agent` is up and running for the keys to
Viewed 0 times
keysthessh-addcommandloadedsshclimanage
Problem
How to use the
ssh-add command: Manage loaded SSH keys in the ssh-agent. Ensure that ssh-agent is up and running for the keys to be loaded in it. More information: <https://man.openbsd.org/ssh-add>.Solution
ssh-add — Manage loaded SSH keys in the ssh-agent. Ensure that ssh-agent is up and running for the keys to be loaded in it. More information: <https://man.openbsd.org/ssh-add>.Add the default SSH keys in
~/.ssh to the ssh-agent:ssh-addAdd a specific key to the ssh-agent:
ssh-add {{path/to/private_key}}List fingerprints of currently loaded keys:
ssh-add -lDelete a key from the ssh-agent:
ssh-add -d {{path/to/private_key}}Delete all currently loaded keys from the ssh-agent:
ssh-add -DAdd a key to the ssh-agent and the keychain:
ssh-add -K {{path/to/private_key}}Code Snippets
Add the default SSH keys in `~/.ssh` to the ssh-agent
ssh-addAdd a specific key to the ssh-agent
ssh-add {{path/to/private_key}}List fingerprints of currently loaded keys
ssh-add -lDelete a key from the ssh-agent
ssh-add -d {{path/to/private_key}}Delete all currently loaded keys from the ssh-agent
ssh-add -DContext
tldr-pages: common/ssh-add
Revisions (0)
No revisions yet.