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.

Install

All systems
curl cmd.cat/ssh-add.sh
Debian Debian
apt-get install openssh-client
Ubuntu
apt-get install openssh-client
Alpine
apk add openssh
Arch Arch Linux
pacman -S openssh
image/svg+xml Kali Linux
apt-get install openssh-client
CentOS
yum install openssh-clients
Fedora
dnf install openssh-clients
OS X
brew install openssh
Raspbian
apt-get install openssh-client
Docker
docker run cmd.cat/ssh-add ssh-add powered by Commando

Manage loaded ssh keys in the ssh-agent. Ensure that ssh-agent is up and running for the keys to be loaded in it.

  • Add the default ssh keys in "~/.ssh" to the ssh-agent:
    ssh-add
  • Add a specific key to the ssh-agent:
    ssh-add path/to/private_key
  • List fingerprints of currently loaded keys:
    ssh-add -l
  • Delete a key from the ssh-agent:
    ssh-add -d path/to/private_key
  • Delete all currently loaded keys from the ssh-agent:
    ssh-add -D

© tl;dr; authors and contributors