ssh-agent

Spawn an SSH Agent process. An SSH Agent holds SSH keys decrypted in memory until removed or the process is killed. See also ssh-add, which can add and manage keys held by an SSH Agent. More information: <https://man.openbsd.org/ssh-agent>.

Install

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

Spawn an SSH Agent process. An SSH Agent holds SSH keys decrypted in memory until removed or the process is killed. See also ssh-add, which can add and manage keys held by an SSH Agent. More information: <https://man.openbsd.org/ssh-agent>.

  • Start an SSH Agent for the current shell:
    eval $(ssh-agent)
  • Kill the currently running agent:
    ssh-agent -k

© tl;dr; authors and contributors