LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 11-13-2003, 10:54 AM   #1
mbhenry
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
ssh failed login count - where is it?


I am on SLES 8. I created two pam entries in /etc/pam.d/login and /etc/pam.d/passwd. These entries are as follows:
auth required /lib/security/pam_tally.so onerr=fail no_magic_root
account required /lib/security/pam_tally.so deny=5 reset no_magic_root

I am trying to only allow 5 failed logins and then for the account to be locked. This works for certain ways of logging in but not for ssh. I can just keep failing on login attempts and trying again way past 5 attempts. The faillog command works to track failed logins from other methods of logging in but not ssh. How can I limit and track failed logins for users that log in with ssh?
 
Old 11-13-2003, 11:35 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
This might be a stupid question, but did you turn on PAM-based authentication in the sshd configuration file?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed SSH login attempts Capt_Caveman Linux - Security 38 01-03-2006 03:22 PM
ssh login reverse mapping failed, should I worry? michaelsanford Linux - Security 3 10-16-2005 09:27 AM
pam_mount login count doesn't decrement beaucoup Linux - Security 0 08-04-2005 11:08 PM
Failed Login through SSH? Help PLEASE tangman Linux - Newbie 8 03-31-2004 03:02 PM
ssh failed login question nelly_boy Solaris / OpenSolaris 3 02-26-2004 08:52 AM


All times are GMT -5. The time now is 09:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration