Skip to content
BENIBIX Learn

SSH Key Passphrase vs SSH Password Login

People think a key passphrase is the same as a password login, and it is not. A password login sends a password to the server, and a bot can guess it there. A passphrase never leaves your laptop. It only unlocks your private key file, so a stolen copy of the file is no use.

Infrastructure🔑 SSH & Remote Access

SSH Key Passphrase

A password that locks your private key file. A stolen copy is then no use.

A key passphrase is a password that locks your private key file. ssh-keygen asks for one when it makes the key. Without it, anyone who copies the file can use your key. With it, the file is useless until the passphrase is typed. It never goes to the server, only to your own key file.

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.
Full entry
Infrastructure🔑 SSH & Remote Access

SSH Password Authentication

Logging in to SSH with a password. Safer servers turn it off and use keys.

Password authentication is logging in to SSH by typing a password. It is easy, but bots try common passwords on every server, all day long. A password can be guessed, reused or stolen. Most guides say to turn it off once your key works. You do that with PasswordAuthentication no in sshd_config.

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.
Full entry

In one line

SSH Key Passphrase
A password that locks your private key file. A stolen copy is then no use.
SSH Password Authentication
Logging in to SSH with a password. Safer servers turn it off and use keys.