SSH Agent

 


ssh-agent is a program that keeps private keys in memory and provides authentication services to SSH client. If you preload an agent with private keys at the beginning of a login session, your SSH clients won;t prompt for passphrases.

To configure ssh-agent:

  1. Start the agent:

    ssh-agent $SHELL

  2. Load private keys:

    ssh-add

To list the keys the agent currently holds:

ssh-add -l

To delete a key from the agent:

ssh-add -d name-of-key-file

To delete all keys from the agent:

ssh-add -D


 

Home