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, UNIXThe 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.
HowTo: Kill TCP Connections in CLOSE_WAIT State
Viewed 15264 times since Thu, Feb 14, 2019
RHEL: Change system’s hostname
Viewed 3292 times since Sun, May 27, 2018
stunnel How To Encrypt Traffic to Redis with Stunnel on Ubuntu 16.04
Viewed 1934 times since Sun, Dec 6, 2020
PROCESSOR AND MEMORY INFORMATION
Viewed 5424 times since Sat, Jun 2, 2018
A Simple Guide to Oracle Cluster File System (OCFS2) using iSCSI on Oracle Cloud Infrastructure
Viewed 8022 times since Sat, Jun 2, 2018
socat: Linux / UNIX TCP Port Forwarder
Viewed 9310 times since Tue, Aug 6, 2019
RHCS6: Show/Add GFS2/GFS journals
Viewed 12559 times since Sun, Jun 3, 2018
How to do a Filesystem Resize (ext3/ext4) on Redhat running on VMware
Viewed 10855 times since Wed, Jul 25, 2018
Logrotate Example for Custom Logs
Viewed 2403 times since Sun, Jan 12, 2020
RHCS6: Install a two-node basic cluster
Viewed 3270 times since Sun, Jun 3, 2018