SSH, Actually 100% signal, 0% noise.

SSH Agents

concept
depth 2/3 − deeper + surface

An SSH agent is a background process that holds your unlocked private keys for a session, so you type your passphrase once instead of on every connection. ssh-agent is the standard one; OS keychains play the same role.

Session—a period of time during which authentication remains valid.

Agent caching:

  • avoids repeated typing
  • expires when the session ends
  • requires a background process

The working vocabulary is three ssh-add commands:

ssh-add ~/.ssh/id_example   # unlock a key and cache it for the session
ssh-add -l                  # list keys currently loaded in the agent
ssh-add -D                  # remove all keys from the agent