How do I disable direct ssh login for non-root user?

Updated -

Release found:

Red Hat Enterprise Linux 3

Red Hat Enterprise Linux 4

Solution:

To accomplish this, add the pam_access module to the PAM configuration file /etc/pam.d/sshd:

  1. Edit /etc/pam.d/sshd and add following line:

    
     account    requir...

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content