Linux / UNIX Tech Support Forum
This is a discussion on SSH limit number of simultaneous logins attempts for each user within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I want to configure SSH in following way: Pl. help on this. One user (Suppose UserName is "demosshuser") can be ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Edit /etc/security/limits.conf and append the following to limit the max number of logins to 2 for user vivek:
Code:
vivek hard maxlogins 2 Code:
Too many logins for 'vivek'. Code:
pam_limits(sshd:session): Too many logins (max 2) for vivek
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 31-10-2009 at 07:17 PM. |
![]() |
| Tags |
| /etc/security/limits.conf , limit ssh login , openssh , openssh max number of logins , ssh max number of logins |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Failed SSH login attempts and how to avoid brute ssh attacks | rockdalinux | Networking, Firewalls and Security | 19 | 12-02-2010 11:45 AM |
| Want a e-mail alert on unsucessful login attempts | kumarat9pm | CentOS / RHEL / Fedora | 2 | 30-10-2009 07:19 AM |
| How to group the output w/ limit | alvingo | Shell scripting | 1 | 26-07-2009 05:45 PM |
| postfix rate limit | blackhat_hk | Mail Servers | 3 | 03-05-2008 07:57 PM |
| Restrict number of simultaneous proxy connections in SQUID proxy | pkvmreddy | Getting started tutorials | 1 | 15-06-2007 03:52 PM |