ansible-hardening/doc/metadata/rhel6/V-38613.rst
Marc Gariepy 3c632174e9 Change default prohibit root sshd password auth
Change-Id: Ib195041cd84bafa0cc7ca1d2ca42041618ce181d
2017-08-16 14:05:18 +00:00

712 B

---id: V-38613 status: opt-in tag: sshd ---

Although the STIG recommends disabling root logins via ssh, the default in this role is to allow it with a key authentication. The OpenStack-Ansible deployment uses the root user by default at this time, but that may change later and allow for this configuration to be set.

To disallow root logins via ssh, simply adjust this configuration variable:

security_ssh_permit_root_login: 'no'

NOTE: The quotes around 'no' or 'yes' are very important. Ansible will treat no and yes as booleans by default and that will cause a True to land in your sshd configuration file. This will causes errors during sshd's startup.