SSH - ssh-agent

Card Puncher Data Processing

SSH - ssh-agent

About

ssh-agent is the authentication agent of the Openssh ssh cli .

It stores un/desencrypted private keys in memory, and communicates with SSH clients via Unix_domain_socket

Management

Start

  • Start the ssh-agent in the background.
eval `ssh-agent`
# or ssh-agent bash
# or eval "$(ssh-agent -s)"

Status

Test if SSH agent is running (If nothing is returned, then ssh-agent is not running)

echo "$SSH_AUTH_SOCK"
/tmp/ssh-rfSUL1ldCldQ/agent.1792

Add a key

  • Add SSH private key to the ssh-agent
ssh-add ~/.ssh/id_rsa

List the keys

ssh-add -l

Documentation / Reference





Discover More
Card Puncher Data Processing
Ansible - Connection

Connection parameters to hosts are given through variable. ... The playbook defines ramon as connection user. At the command line, we set the connection user to lola but the connection...
Card Puncher Data Processing
SSH - Authentication Agent

An authentication agent is a component of the public key authentication scheme that permits you to be authenticated op basis of a key file. It is a background process that stores your private keys in...
Card Puncher Data Processing
SSH - SSH client (OpenSsh)

ssh is a ssh client from OpenSSH () Windows: Git: user's private key location: ~/.ssh/id_rsa ssh-agent is a background process where...
Card Puncher Data Processing
SSH - ssh-agent

ssh-agent is the authentication agent of the Openssh ssh cli . It stores un/desencrypted private keys in memory, and communicates with SSH clients via Unix_domain_socket Start the ssh-agent in...



Share this page:
Follow us:
Task Runner