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