Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH authentication issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Sephren
n00b
n00b


Joined: 08 Oct 2005
Posts: 30
Location: Norway

PostPosted: Sat Jun 13, 2009 4:44 pm    Post subject: SSH authentication issue Reply with quote

Hi,

I have a bit of a weird issue. Logging in through SSH using password authentication no longer works. PK authentication, however works. Since I always use key authentication personally, I did not discover the issue in time to figure out what kind of config changes and/or updates could have caused this issue and I really don't know where to start. Any help would be appreciated.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Sun Jun 14, 2009 12:25 am    Post subject: check pam Reply with quote

look at your /etc/pam.d at sshd probably
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sun Jun 14, 2009 7:10 am    Post subject: Reply with quote

can you post the following:

Code:

grep -v ^\# /etc/ssh/sshd_config |grep -v ^$



(should be able to paste that verbatim)
Back to top
View user's profile Send private message
Sephren
n00b
n00b


Joined: 08 Oct 2005
Posts: 30
Location: Norway

PostPosted: Sun Jun 14, 2009 8:06 am    Post subject: Re: check pam Reply with quote

The content of /etc/pam.d are unmodified for sure

The content of sshd_config should also be unmodified and they are pretty much the same as other boxes I have where password login is working.

Code:
Protocol 2                                                                                                                                     
PasswordAuthentication no                                                                                                                     
UsePAM yes                                                                                                                                     
PrintMotd no                                                                                                                                   
PrintLastLog no                                                                                                                               
Subsystem       sftp    /usr/lib/misc/sftp-server


I also tried to set UsePAM to "no", but that didn't help either. And that is the weird thing. To me, it looks like the issue is neither with pam, nor with ssh itself.
Back to top
View user's profile Send private message
Sephren
n00b
n00b


Joined: 08 Oct 2005
Posts: 30
Location: Norway

PostPosted: Sat Jun 27, 2009 10:57 am    Post subject: Reply with quote

No one that can help out with this?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23093

PostPosted: Sat Jun 27, 2009 2:41 pm    Post subject: Reply with quote

After stripping comments and whitespace from both a working and non-working sshd_config, what is the result of running diff -u to compare them? Similarly, strip and then compare the PAM files for working and non-working systems. Finally, run both the client and server with debug output enabled, and compare the output between a session where password authentication is permitted and one where it is not.
Back to top
View user's profile Send private message
Sephren
n00b
n00b


Joined: 08 Oct 2005
Posts: 30
Location: Norway

PostPosted: Sat Jun 27, 2009 7:16 pm    Post subject: Reply with quote

As I said, both of these two are distro versions. I.e no modifications have been made by them since install. Also, no configs I have tried works so I have no config to diff with.
Back to top
View user's profile Send private message
Sephren
n00b
n00b


Joined: 08 Oct 2005
Posts: 30
Location: Norway

PostPosted: Sat Jun 27, 2009 8:53 pm    Post subject: Reply with quote

Here is some more information:
$ su - root - enter password: works
# login <username>: does not work
# login -f username: works

Could it be anything wrong with /etc/shadow or something? It strengthens my believes that it is the actual login procedure that is the issue and not SSH or PAM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum