1. Home
  2. Security Hardening
  3. CIS IBM AIX 7.1 L1 V1.1.0
  4. Configuring SSH – set MaxAuthTries to 4 or Less

Configuring SSH – set MaxAuthTries to 4 or Less

Details

The MaxAuthTries parameter specifies the maximum number of authentication attempts permitted per connection. When the login failure count reaches half the number, error messages will be written to the syslog file detailing the login failure.

Setting the MaxAuthTries parameter to a low number will minimize the risk of successful brute force attacks to the SSH server. While the recommended setting is 4, it is set the number based on site policy.

Solution

Edit the/etc/ssh/sshd_config file-

vi /etc/ssh/sshd_config

Set-

MaxAuthTries 4

Re-cycle the sshd daemon to pick up the configuration changes-

stopsrc -s sshd
startsrc -s sshd

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles