Linux PAM configuration that allows or deny login via the sshd server

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
Open SSH Logo

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

  1. Backup all data and PAM configuration files before any modification
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
linux ssh How to Hide the OpenSSH Version Details when Telnet to Port 22
Viewed 4468 times since Wed, Apr 22, 2020
Use inotify-tools on CentOS 7 or RHEL 7 to watch files and directories for events
Viewed 13895 times since Fri, Jul 27, 2018
Using Kerberos security with Server for NFS
Viewed 9404 times since Wed, Jun 27, 2018
Jak wygenerować silne hasła jednorazowe w Linuksie?
Viewed 2209 times since Thu, May 24, 2018
10 Linux DIG Command Examples for DNS Lookup
Viewed 10916 times since Sun, Sep 30, 2018
Linux Screen
Viewed 1923 times since Sat, Jun 2, 2018
Linux An introduction to swap space on Linux systems
Viewed 2277 times since Thu, Jan 23, 2020
ZPOOL: Grow a zpool by adding new device(s)
Viewed 5960 times since Sun, Jun 3, 2018
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
Viewed 2331 times since Mon, Nov 23, 2020
Using grep to find string in files
Viewed 2024 times since Fri, May 15, 2020