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.
3 Ways to Check Linux Kernel Version in Command Line
Viewed 11862 times since Fri, Apr 19, 2019
ubuntu How to Reset Forgotten Passwords in Ubuntu 16.04
Viewed 3751 times since Tue, Dec 8, 2020
How to recover error - Audit error: dispatch err (pipe full) event lost
Viewed 26464 times since Tue, Aug 6, 2019
RHEL: XFS basic operations
Viewed 16315 times since Sat, Jun 2, 2018
How to convert RAW image to VDI and otherwise
Viewed 15297 times since Wed, Oct 3, 2018
watchdog How to restart a process out of crontab on a Linux/Unix
Viewed 6263 times since Tue, Jul 31, 2018
6 rsync Examples to Exclude Multiple Files and Directories using exclude-from
Viewed 5245 times since Wed, Oct 31, 2018
Szybkie sprawdzenie zewnętrznego adresu IP i hosta
Viewed 3584 times since Thu, May 24, 2018
BIND for the Small LAN
Viewed 3626 times since Sun, May 20, 2018
Linux - How to get Memory information
Viewed 2131 times since Fri, Jun 8, 2018