admin account ssh problem

V4mpireuk

Verified User
Joined
Mar 29, 2010
Messages
33
Hi,

not sure if you would class this as the correct place to be posting this...

but basically the password on directadmin for the account 'admin' works on directadmin on the admin email account but not on ssh i have tryed changing the pass etc a few times to see what happens and i would have thought if it worked on ftp it would work on ssh.

I do realise that normally when accounts get setup you need to login to ftp first before ssh will work with those logins i have also tryed this with the admin account ssh is already enabled on the admin account, So i have no idea what the problem is hope someone can help.

If i manage to solve this in the mean time while waiting for a reply i will post back here and explain the fix incase anyone else comes across the problem.

Cheers,

Gary
 
I do realise that normally when accounts get setup you need to login to ftp first before ssh will work with those logins

I have never heard of that.

Can you login as root?

Try creating another user and give them ssh access and try that user with ssh.
 
the other accounts on the server already seem fine with ssh.

I will try what u said tho just to test
 
yes this works fine its an odd issue with the admin account i've only now tryed after installing a while ago as i've not needed to use ssh to connect to it until now
 
So you can login and get to the root user. Check the /etc/ssh/sshd_config file and make admin is listed there.

Also check the secure log to see what happens when you try to login as admin.
 
ok thats not good, i added it to the config and it closes the putty window after password now
 
right i was just looking through the server files i checked /etc/shadow which checked out all fine.

I then checked /etc/passwd and found out that admin was set to /bin/false instead of /bin/bash then i went to /etc/ssh/sshd_config and added at the bottom AllowUsers admin.

This solved my problem of ssh nor working for admin but question is, is this a bug on the install of directadmin or are we meant to manually allow admin ssh admin on install this would be nice to know for future reference.

If anyone wondered... the server was origionally freshly installed and directadmin installed before ANYTHING else like updates etc so couldn't have been any settings before hand because all new users added with directadmin and ssh access it works straight away.
 
I always set up the admin user before I install DirectAdmin. When I do that it appears to work properly after the DirectAdmin install, though of course the DirectAdmin install changes the password.

But, yes, I do have to create an entry for AllowUsers.

Jeff
 
hi maybe others do the same as you did by setting up the admin user first this was the first time i've installed directadmin myself but at least i know for future reference
 
Back
Top