1.102 SOL-11.1-040340

Information

Consecutive login attempts for SSH must be limited to 3.

GROUP ID: V-216352
RULE ID: SV-216352r959010

Setting the authentication login limit to a low value will disconnect the attacker and force a reconnect, which severely limits the speed of such brute-force attacks.

Solution

The root role is required.

Modify the sshd_config file.

# pfedit /etc/ssh/sshd_config

Locate the line containing:

MaxAuthTries

Change it to:

MaxAuthTries 6

Restart the SSH service.

# svcadm restart svc:/network/ssh

Note: Solaris SSH MaxAuthTries of 6 maps to 3 actual failed attempts.

See Also

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