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.
stunnel: Authentication
Viewed 9805 times since Fri, Sep 28, 2018
RHCS: Install a two-node basic cluster
Viewed 11340 times since Sun, Jun 3, 2018
Red Hat ADDING SWAP SPACE
Viewed 2753 times since Fri, Jun 8, 2018
10 Linux rsync Examples to Exclude Files/Directories
Viewed 12052 times since Wed, Oct 31, 2018
SSH ProxyCommand example: Going through one host to reach another server
Viewed 14847 times since Tue, Aug 6, 2019
YUM CRON Enabling automatic updates in Centos 7 and RHEL 7
Viewed 12700 times since Fri, Oct 26, 2018
RHEL: ACLs basics
Viewed 7341 times since Sun, May 27, 2018
Installing and Configuring stunnel on CentOS 6
Viewed 4843 times since Fri, Sep 28, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 43971 times since Thu, Jun 21, 2018
Linux ssh Hide OpenSSH Version Banner
Viewed 56648 times since Wed, Apr 22, 2020

