🔑ssh-agent
Also known as SSH Agent, ssh-add, SSH Key Agent
A helper that holds your keys open. You type the passphrase just once.
Think of it like
Think of it like a friend who holds your keys while you are out. You ask, and they open the door for you.
Example
Lucy logs in to servers twenty times a day. She adds her key to ssh-agent each morning and types the passphrase just once.
Why it matters
It makes a locked key as easy to use as an open one. So there is no need to skip the passphrase.
Definition
Example code
console
$ ssh-add ~/.ssh/id_ed25519
Enter passphrase for /home/lucy/.ssh/id_ed25519:
Identity added: /home/lucy/.ssh/id_ed25519 (lucy@laptop)Common mistake
Key takeaways
- 1Holds keys open. In memory, on your computer.
- 2Passphrase once. Then it signs for you.
- 3Careful forwarding. Only to servers you trust.