Information
The IgnoreRhosts parameter specifies that .rhosts and .shosts files will not be used in RhostsRSAAuthentication or HostbasedAuthentication.
More information about the openSSH server configuration is available in the "Configure SSH Server" section overview.
Setting this parameter forces users to enter a password when authenticating with SSH.
Solution
Create or edit a *.conf file in the /etc/ssh/sshd_config.d/ and set the IgnoreRhosts parameter to yes above any Include entry as follows:
IgnoreRhosts yes
Run the following command to apply the configuration change to the running sshd daemon without interrupting active sessions:
# systemctl reload sshd