🔑SSH Password Authentication
Also known as PasswordAuthentication, SSH Password Login, Disable Password Login
Logging in to SSH with a password. Safer servers turn it off and use keys.
Think of it like
Think of it like a door that opens to anyone who says the right word. Someone will keep guessing words.
Example
Lucy's new server logs thousands of failed password guesses in its first day. She turns password login off, and the guesses stop working.
Why it matters
Guessing passwords is the most common attack on a new server. Turning them off ends it.
Definition
Example code
console
$ ssh -o PubkeyAuthentication=no lucy@203.0.113.10
lucy@203.0.113.10: Permission denied (publickey).Common mistake
Key takeaways
- 1Easy to guess. Bots try all day.
- 2Keys instead. Turn passwords off once keys work.
- 3One line. PasswordAuthentication no.