GEN005521 - The SSH daemon must restrict login ability to specific users and/or groups.

Information

Restricting SSH logins to a limited group of users, such as system administrators, prevents password-guessing and other SSH attacks from reaching system accounts and other accounts not authorized for SSH access.

Solution

Edit the SSH daemon configuration and add an 'AllowGroups' or 'AllowUsers' directive specifying the groups and users allowed to have access.

Restart the SSH daemon.
# /sbin/service sshd restart

Alternatively, modify the /etc/pam.d/sshd file to include the line

account required pam_access.so accessfile=<path to access.conf for sshd>

If the 'accessfile' option is not specified the default 'access.conf' file will be used.

The 'access.conf' file must contain the user restriction definitions.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_5_V1R14_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3, 800-53|AC-6(7), CAT|II, CCI|CCI-000225, Rule-ID|SV-63727r1_rule, STIG-ID|GEN005521, Vuln-ID|V-22470

Plugin: Unix

Control ID: b2a6ed9286b9defc74c5bfb8260b409a56853d6525d0107ad2ac6b3b9ca6a582