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 nosshd -T | grep -i passwordauthenticationRelated terms
- sshd_config — The main configuration file of the OpenSSH server, normally at /etc/ssh/sshd_config, which controls who can log in and how.
- MaxAuthTries — The sshd_config setting that limits how many authentication attempts a client may make on one connection before it is disconnected.
- brute force attack — Trying many passwords against one account until one works.
- effective configuration — The settings a program actually uses once it has read every file, include and built-in default, which can differ from what any single file says.
Taught in
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Security Baselines, Policies & Hardening Standards — Cybersecurity Fundamentals, GRC & Cryptography
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep
- What Changed Last Night? Integrity, Scans, Benchmarks And Secure Deletion — CompTIA Linux+ (XK0-006) Exam Prep