PDA

View Full Version : admin login on SSH



jabbink
01-24-2012, 11:53 AM
Hi,

since today I am unable to login as admin on my CentOS 5.6 box with directadmin.

All other users work but I constantly get Access denied as server reponse (FlashFXP says [R] Authentication failed [Invalid Password]
[R] SSH Error: failed to negotiate authentication method
[R] SSH Connection closed)

I reset the password in directadmin (which works (logging in as well). Didn't help.

I logged in as another user, went up to root, executed "passwd admin" and set another password. Didn't work (even though the server said "passwd: all authentication tokens updated successfully.").

Any ideas?

zEitEr
01-24-2012, 12:19 PM
Hello,

Check directadmin logs in

/var/log/directadmin/

jabbink
01-24-2012, 12:20 PM
A friend of mine solved it:
Something (I guess directadmin?!) removed admin from the AllowUsers part in /etc/ssh/sshd_config and changed /etc/passwd for admin to /bin/false instead of /bin/bash

DirectAdmin Support
01-26-2012, 04:29 PM
Hello,

To clarify, that is the normal action DA does when the ssh option is removed from an account.
Ssh was likely disabled from the account.

John

jabbink
01-26-2012, 05:36 PM
That was not the case.
I did not remove it and nobody else logged in (or cleaned up all logs perfectly including the message that someone disconnected (from SSH)).

I tried to fix this (before I got the manual fix) by disabling SSH for the user admin. That did not work since SSH stayed checked.