Linux PAM configuration that allows or deny login via the sshd server

Linux PAM configuration that allows or deny login via the sshd server

last updated in Categories Howto, Linux, Linux login control, Networking, OpenBSD, RedHat/Fedora Linux, Security, Suse Linux, Sys admin, UNIX
Open SSH Logo

The idea is very simple you want to limit who can use sshd based on a list of users. The text file contains a list of users that may not log in (or allowed to log in) using the SSH server. This is used for improving security.

 

 

 

PAM (Pluggable authentication modules) allows you to define flexible mechanism for authenticating users. My previous post demonstrated how to deny or allow users using sshd configuration option. However, if you want to block or deny a large number of users, use PAM configuration.

A note for new sys admins

  1. Backup all data and PAM configuration files before any modification
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
OpenSSL: Check SSL Certificate Expiration Date and More
Viewed 576 times since Mon, Feb 18, 2019
stunnel: Authentication
Viewed 495 times since Fri, Sep 28, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 760 times since Sat, Jun 2, 2018
How To Add Swap Space on Ubuntu 16.04
Viewed 538 times since Fri, Jun 8, 2018
RHEL: Building a custom kernel on RHEL 6
Viewed 901 times since Sat, Jun 2, 2018
RHCS6: Luci - the cluster management console
Viewed 808 times since Sun, Jun 3, 2018
HOWTO: Use SSL/port 465 in smarthost stunnel
Viewed 519 times since Fri, Sep 28, 2018
Netcat shell zabezpieczony hasłem
Viewed 800 times since Thu, May 24, 2018
LVM: Remove an existing Volume Group
Viewed 655 times since Sat, Jun 2, 2018
Stunnel Setup
Viewed 3102 times since Fri, Sep 28, 2018