Skip to content
HighSSHBLWK-SSH-001

SSH password authentication is enabled ​

What this means ​

PasswordAuthentication is set to “‹password authentication›” in sshd_config, which allows an attacker to brute-force their way in with a password guess instead of needing a private key. It is the OpenSSH default and a brute-force exposure rather than a definite compromise, so it's rated high (aligning with CIS's L1 treatment and with BLWK-SSH-002), not critical.

How to fix it ​

Set PasswordAuthentication no in /etc/ssh/sshd_config and run systemctl restart sshd. IMPORTANT: confirm key-based login works in a SECOND session before you rely on this — if the only working credential is a password and no key is installed, you will lock yourself out on the next login. Existing sessions survive the restart; a new key-authenticated login must succeed first.

Check it yourself ​

Run a scan and look for BLWK-SSH-001 in the results:

sh
bulwark scan

Installed the standalone CLI package instead of the app? The command is bulwarkctl.

How Bulwark decides

Bulwark reads sshd_config and reports this check when:

text
password_authentication == "yes"

If a value can't be read, Bulwark reports the check as undetermined rather than passing it. View the rule source.

References ​

Released under the Apache License 2.0.