Linux PAM configuration that allows or deny login via the sshd server
Article Number: 401 | Rating: Unrated | Last Updated: Wed, Oct 3, 2018 4:08 PM
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
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
- Backup all data and PAM configuration files before any modification
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
RHEL: Crash kernel dumps configuration and analysis on RHEL 5
Viewed 9170 times since Sat, Jun 2, 2018
RHEL: Extending a vmdk (Virtual Machine disk)
Viewed 5545 times since Sun, May 27, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 5161 times since Mon, Oct 29, 2018
RHEL: Extending the maximum inode count on a ext2/ext3/ext4 filesystem
Viewed 4774 times since Sun, May 27, 2018
RHEL: Change system’s hostname
Viewed 4733 times since Sun, May 27, 2018
RHEL7: How to get started with Firewalld.
Viewed 13673 times since Wed, May 22, 2019
How to Synchronize Directories Using Lsyncd in Linux
Viewed 15972 times since Wed, Oct 31, 2018
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 3315 times since Sat, Jun 2, 2018
Manage Linux Password Expiration and Aging Using chage
Viewed 6652 times since Tue, Sep 11, 2018
Set Up SSH Tunneling on a Linux / Unix / BSD Server To Bypass NAT
Viewed 12350 times since Fri, May 15, 2020

