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.
Build a simple RPM that packages a single file
Viewed 8560 times since Sat, Jun 2, 2018
Using grep to find string in files
Viewed 2242 times since Fri, May 15, 2020
Linux – delete the LUN and remove traces from OS
Viewed 3629 times since Tue, May 22, 2018
debian Debian/Ubuntu Linux: Find If Installed APT Package Includes a Fix/Patch Via CVE Number
Viewed 9494 times since Sun, Sep 23, 2018
OEL 7 – How to disable IPv6 on Oracle Linux 7
Viewed 20435 times since Fri, Aug 3, 2018
How To Ping Specific Port Number
Viewed 4226 times since Mon, Jun 1, 2020
LVM: Recovering Physical Volume Metadata
Viewed 13167 times since Sat, Jun 2, 2018
6 rsync Examples to Exclude Multiple Files and Directories using exclude-from
Viewed 4954 times since Wed, Oct 31, 2018
linux aix Killing a process and all of its descendants
Viewed 3839 times since Tue, May 5, 2020
RHEL: Rebuilding the initial ramdisk image
Viewed 7531 times since Sat, Jun 2, 2018