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.
How to clear swap memory in Linux
Viewed 2973 times since Mon, Nov 23, 2020
BIND for the Small LAN
Viewed 4210 times since Sun, May 20, 2018
RHEL: Extending a multipath LUN
Viewed 6504 times since Sun, May 27, 2018
How to retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 4247 times since Tue, Jul 17, 2018
How to Migrate from RHEL 8 to CentOS 8
Viewed 4145 times since Fri, May 15, 2020
RHEL: Forgotten ’root’ password / using single-user to gain access
Viewed 8918 times since Sat, Jun 2, 2018
List usernames instead of uids with the ps command for long usernames
Viewed 3189 times since Wed, Jul 25, 2018
RHCS6: Basic operations on clustered services
Viewed 3414 times since Sun, Jun 3, 2018
Find All Large Files On A Linux System
Viewed 2955 times since Mon, Oct 29, 2018
sed Delete / Remove ^M Carriage Return (Line Feed / CRLF) on Linux or Unix
Viewed 11975 times since Thu, Feb 7, 2019

