🔑SSH Key Passphrase
Also known as Key Passphrase, Passphrase (SSH), Encrypted Private Key
A password that locks your private key file. A stolen copy is then no use.
Think of it like
Think of it like a lock on the box that holds your house key. A thief gets the box, not the key.
Example
Emma's laptop is stolen. Her private key had a passphrase, so the thief cannot use it to reach her servers.
Why it matters
A private key is the key to every server it opens. A passphrase protects it if the laptop is lost.
Definition
Example code
console
$ ssh-keygen -t ed25519
Enter passphrase (empty for no passphrase):
Enter same passphrase again:Common mistake
Key takeaways
- 1Locks the file. Not the server, the key.
- 2Stays local. Never sent over the network.
- 3Pair it with an agent. Type it once a day.