🔑SSH Public Key Authentication
Also known as Public Key Authentication, Key-Based Login, Passwordless SSH
You log in by proving you hold a private key. No password is sent.
Think of it like
Think of it like a secret handshake. The guard knows your half, and only you can do the rest.
Example
Emma turns on key login for her server and turns password login off. Bots guessing passwords now get nowhere.
Why it matters
It cannot be guessed like a password. A stolen server log holds no secret to use again.
Definition
Example code
console
$ ssh -v emma@203.0.113.10
debug1: Offering public key: /home/emma/.ssh/id_ed25519 ED25519
debug1: Server accepts key: /home/emma/.ssh/id_ed25519 ED25519Common mistake
Key takeaways
- 1A challenge. The server asks a fresh question.
- 2Signed reply. Only the private key can sign it.
- 3Nothing to steal. No secret goes over the line.