How do I configure PAM to only allow particular users login via sshd?

Updated -

Release Found: Red Hat Enterprise Linux 5

PAM module can be used for this restriction.

Firstly, please create the allowed userlist file. Each line of the file is one username. Assume that the file name is /etc/sshd_userlist, and put the allowed user names in it:



Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In