LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Help: Weirdness with ssh/pam when trying to ssh in (https://www.linuxquestions.org/questions/linux-security-4/help-weirdness-with-ssh-pam-when-trying-to-ssh-in-799431/)

Nabana 04-01-2010 03:24 PM

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!

AlucardZero 04-01-2010 09:17 PM

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.


All times are GMT -5. The time now is 01:30 AM.