LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-01-2010, 02:24 PM   #1
Nabana
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Help: Weirdness with ssh/pam when trying to ssh in


So on one of the Linux systems here (2.6 kernel if it matters), there's some weirdness regarding trying to ssh into the system. Basically, if you give it the wrong password on the first ssh attempt, it will give you two more attempts, but even if you give it the correct password, it still won't let you in on those subsequent attempts. (If you give the correct password on the first attempt, it will let you in.)

Example:

Code:
user1@machine1# ssh user2@machine2
user2@machine2's password: <wrong password>
Permission denied, please try again.
user2@machine2's password: <correct password>
Permission denied, please try again.
user2@machine2's password: <correct password>
Permission denied (publickey,gssapi-with-mic,password).
user1@machine1#
The system has sshd configured to use pam (i.e., UsePAM set to 'yes' in sshd_config), but I'm kind of a PAM dummy.

Any ideas?
Thanks!
 
Old 04-01-2010, 08:17 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Well what do the log files say? 2.6/2.4 doesn't matter but your distro and exact kernel version might. Same with OpenSSH and PAM versions.
 
  


Reply

Tags
pam, ssh



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
SSH weirdness TL_CLD Slackware 1 09-10-2008 09:26 AM
ssh login weirdness kav Linux - Networking 10 12-26-2006 05:59 AM
ssh and pam isuck@linux Linux - Security 2 11-15-2006 11:58 AM
SSH weirdness sardaukar_siet Linux - Networking 2 11-07-2006 03:31 PM
Undef handle weirdness in Net::SSH::Perl PenguinPwrdBox Programming 0 07-11-2006 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration