6.1.6 Set SSH IgnoreRhosts to yes - Check if IgnoreRhosts is set to yes and not commented for the server.

Information

Level: 1

Solution

Edit the /etc/ssh/sshd_config file to set the parameter as follows-

awk '/^ IgnoreRhosts/ { $2 = 'yes' } { print }' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new

/usr/bin/mv /etc/ssh/sshd_config.new /etc/ssh/sshd_config

/usr/sbin/pkgchk -f -n -p /etc/ssh/sshd_config

/usr/sbin/svcadm restart svc:/network/ssh

See Also

https://benchmarks.cisecurity.org/tools2/solaris/CIS_Oracle_Solaris_10_Benchmark_v5.2.0.pdf

Item Details

Category: ACCESS CONTROL, IDENTIFICATION AND AUTHENTICATION

References: 800-53|AC-14, 800-53|IA-5

Plugin: Unix

Control ID: 72aa5af8b6353b56641e457511711ca34b0c1e580508dddcff6c8bf07f841038