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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.