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
Prosty skaner portów TCP w bash
Viewed 799 times since Thu, May 24, 2018
How to retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 480 times since Tue, Jul 17, 2018
Linux Kernel /etc/sysctl.conf Security Hardening
Viewed 1754 times since Fri, Aug 3, 2018
How to deal with dmesg timestamps
Viewed 534 times since Wed, Oct 3, 2018
Jak ustawić LVM, jak robić snapshoty oraz automatycznie powiększać LV, czyli małe howto
Viewed 1299 times since Sun, May 20, 2018
Linux – How to check the exit status of several piped commands
Viewed 1151 times since Wed, Jul 25, 2018
Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7
Viewed 761 times since Mon, Oct 29, 2018
RHCS: Install a two-node basic cluster
Viewed 850 times since Sun, Jun 3, 2018
Linux - How to monitor CPU usage
Viewed 509 times since Fri, Jun 8, 2018
Lsyncd: live file syncronization across multiple Linux servers
Viewed 1117 times since Wed, Oct 31, 2018