6.1.4 Set SSH MaxAuth Tries to 3 - Check if MaxAuthTries is set to 3 or lower and not commented for the server.

Information

Level: 1

Solution

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

awk '/^ MaxAuthTries/ { $2 = '3' } { 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

References: 800-53|AC-7

Plugin: Unix

Control ID: b6ab712d322641d5488754266bcac16039807c7605711947d189a6468db28cce