PasswordAuthentication

The sshd_config setting that decides whether users may log in to an SSH server by typing a password.

In more detail

Setting it to no means only stronger methods such as keys, optionally combined with MFA, are accepted, which shuts out password-guessing attacks. OpenSSH allows password logins by default, and KbdInteractiveAuthentication can also prompt for a password, so hardened configurations turn both off. Because sshd uses the first value it reads, confirm the real value with sshd -T rather than trusting the main file.

Examples

PasswordAuthentication no
sshd -T | grep -i passwordauthentication

Related terms

Taught in

References

Certification courses