SSH only accepts root connection

Hello,

I’m not new to linux at all, but I do not have a server admin background in linux, so I may be missing something obvious.

On a server which was previously working fine, ssh stopped accepting connections a while ago, restarting using /etc/init.d/sshd restart didn’t resolve this problem, but eventually a complete server restart did.

I can now connect to the server via ssh, but only as root. All other accounts return Permission denied, please try again. This is using password authentication, which worked fine for all users previously.

When this connection is attempted… the resulting srv/log/message is (I have changed the connecting ip to ###, and user account names etc for privacy):


Sep 14 10:36:37 srv01 slapd[5475]: conn=44 fd=24 ACCEPT from IP=127.0.0.1:33708 (IP=0.0.0.0:389)
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=0 BIND dn="" method=128
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=0 RESULT tag=97 err=0 text=
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=1 SRCH base="ou=People,ou=Users,dc=companyName,dc=lan" scope=2 deref=0 filter="(&(
objectClass=posixAccount)(uid=userAccount))"
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory loginShell ge
cos description objectClass
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=2 SRCH base="ou=Users,dc=companyName,dc=lan" scope=2 deref=0 filter="(&(objectClas
s=shadowAccount)(uid=userAccount))"
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=2 SRCH attr=uid userPassword shadowLastChange shadowMax shadowMin shadowWarning
 shadowInactive shadowExpire shadowFlag
Sep 14 10:36:37 srv01 slapd[5475]: conn=44 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Sep 14 10:36:39 srv01 slapd[5475]: conn=44 op=3 SRCH base="ou=Users,dc=companyName,dc=lan" scope=2 deref=0 filter="(&(objectClas
s=shadowAccount)(uid=userAccount))"
Sep 14 10:36:39 srv01 slapd[5475]: conn=44 op=3 SRCH attr=uid userPassword shadowLastChange shadowMax shadowMin shadowWarning
 shadowInactive shadowExpire shadowFlag
Sep 14 10:36:39 srv01 slapd[5475]: conn=44 op=3 SEARCH RESULT tag=101 err=0 nentries=1 text=
Sep 14 10:36:39 srv01 sshd[6004]: Failed password for userAccount from ###.###.###.### port 4781 ssh2

Any advice on what could be causing this would be greatly appreciated, thanks.

Bryan

http://susewiki.org/index.php?title=Public_Key_Authentication_with_SSH

I do not wish to be copying private keys over to the server for all users, I want them to be able to simply log in with their user name / password combo as they have allways been able to do until this problem.

The sshd_config file was blank previously. If i explicitly enter

PasswordAuthentication yes

it does not make any difference to the permission denied that a user attempting to log in recieves.

Bryan

I have checked the hosts.allow and hosts.deny, these seem fine, and the connection is made, just permissions somehow seem to deny everyone except root. Still no suggestions?