5.2.20 Ensure SSH PAM is enabled

Information

UsePAM Enables the Pluggable Authentication Module interface. If set to 'yes' this will enable PAM authentication using ChallengeResponseAuthentication and PasswordAuthentication in addition to PAM account and session module processing for all authentication types

Rationale:

When usePAM is set to yes, PAM runs through account and session types properly. This is important if you want to restrict access to services based off of IP, time or other factors of the account. Additionally, you can make sure users inherit certain environment variables on login or disallow access to the server

Solution

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

UsePAM yes

Impact:

If UsePAM is enabled, you will not be able to run sshd(8) as a non-root user.

Default Value:

usePAM yes

See Also

https://workbench.cisecurity.org/files/2611

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-13.

Plugin: Unix

Control ID: aca5f2ed4fdf8946f1bf2f39678038190885034d395e170669fe80935282ccd1