1.217 WN25-SH-000040

Information

Windows Server 2025 OpenSSH must not allow blank passwords.

GROUP ID: V-285316
RULE ID: SV-285316r1211176

If an account has an empty password, anyone could log on and run commands with the privileges of that account. Accounts with empty passwords must never be used in operational environments.

Satisfies: SRG-OS-000106-GPOS-00053, SRG-OS-000480-GPOS-00229, SRG-OS-000480-GPOS-00228

Solution

To configure the system, add or modify the following line in the '$env:ProgramData/ssh/sshd_config' file:

PermitEmptyPasswords no

Restart the OpenSSH service for the settings to take effect.

See Also

https://workbench.cisecurity.org/benchmarks/28234