5.1.34 Ensure sshd IgnoreUserKnownHosts is enabled

Information

The operating system's SSH daemon must not allow authentication using known host's authentication.

Configuring this setting for the SSH daemon provides additional assurance that remote logon via SSH will require a password, even in the event of misconfiguration elsewhere.

Solution

Configure the SSH daemon to not allow authentication using known host's authentication.

Edit the /etc/ssh/sshd_config file to set the IgnoreUserKnownHosts parameter to yes above any Include entry as follows:

IgnoreUserKnownHosts yes

Note: First occurrence of a option takes precedence. If Include locations are enabled, used, and order of precedence is understood in your environment, the entry may be created in a file in Include location.

The SSH daemon must be restarted for the changes to take effect. To restart the SSH daemon, run the following command:

# systemctl reload-or-restart sshd.service

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1), CSCv7|4.4

Plugin: Unix

Control ID: 46508c6380e7bd04531d1fd1f5c753384b6e08a817b68afaab9003afa6f72b2f