Users do not have SSH access

apitsos

Verified User
Joined
Dec 30, 2009
Messages
75
Location
Athens, Greece
Hello,

I have a server with CentOS 5.6 (32-bit) and DirectAdmin. When I enable SSH access for some user (through DirectAdmin), I see that this user can't login. When I am trying to login with this user's credentials (through PuTTY) I am getting the message "Access denied"!

Do you have any idea what is wrong? Does someone has to suggest what to check?

Please note that this is a remote server and we don't want to lose "root" SSH connection with it.

Thanks a lot in advance for your support!


Best regards,
Angelos Pitsos
 
Logs :

May 15 22:08:23 manage sshd[4063]: User andrei not allowed because not listed in
AllowUsers
May 15 22:08:25 manage sshd[4063]: Failed none for illegal user andrei from
109.246.251.243 port 55737 ssh2


FYI : user added in AllowUsers list in /etc/sshd/sshd_config
AllowUsers andrei
 
And you still have the same error? If so. make sure, that login and user name are not misspelled:

Code:
grep andrei /etc/sshd/sshd_config
grep andrei /etc/passwd
 
Because this was a customer's user and I do not have the password I tried with a user of mine and now I am getting from PuTTY the error "Server unexpectedly closed network connection".

Of course I added this user in AllowUsers list in /etc/sshd/sshd_config.

Thanks!
 
Alex,

This is what I am getting on the logs when a user is trying to login.
Code:
sshd[20787]: pam_unix(sshd:auth): check pass; user unknown
sshd[20787]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0
tty=NODEVssh ruser= rhost=IP
sshd[20787]: pam_succeed_if(sshd:auth): error retrieving information about user
NOUSER
sshd[20787]: pam_unix(sshd:auth): check pass; user unknown
sshd[20787]: pam_succeed_if(sshd:auth): error retrieving information about user
NOUSER

Do you understand what the problem could be, please?

Thanks a lot in advance for your time.


Best regards,
Angelos Pitsos
 
Without any real data I have no more ideas. I would like to see /etc/passwd and /etc/sshd/sshd_config. You can send them in PM. Otherwise you might want to wait for somebody else's answer.
 
Back
Top