View previous topic :: View next topic |
Author |
Message |
Sephren n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Oct 2005 Posts: 30 Location: Norway
|
Posted: Sat Jun 13, 2009 4:44 pm Post subject: SSH authentication issue |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
vaxbrat l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/The Jetsons/cartoon_the_jetsons_george.gif)
Joined: 05 Oct 2005 Posts: 731 Location: DC Burbs
|
Posted: Sun Jun 14, 2009 12:25 am Post subject: check pam |
|
|
look at your /etc/pam.d at sshd probably |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cach0rr0 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/14936637654ee19d6630f96.gif)
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sun Jun 14, 2009 7:10 am Post subject: |
|
|
can you post the following:
Code: |
grep -v ^\# /etc/ssh/sshd_config |grep -v ^$
|
(should be able to paste that verbatim) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sephren n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Oct 2005 Posts: 30 Location: Norway
|
Posted: Sun Jun 14, 2009 8:06 am Post subject: Re: check pam |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Sephren n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Oct 2005 Posts: 30 Location: Norway
|
Posted: Sat Jun 27, 2009 10:57 am Post subject: |
|
|
No one that can help out with this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23093
|
Posted: Sat Jun 27, 2009 2:41 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Sephren n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Oct 2005 Posts: 30 Location: Norway
|
Posted: Sat Jun 27, 2009 7:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Sephren n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Oct 2005 Posts: 30 Location: Norway
|
Posted: Sat Jun 27, 2009 8:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|