Problem with SSH and adduser after installing DA

jxx1229

New member
Joined
Jun 29, 2008
Messages
2
I have recently switched from centOS to Debian, and there was no problem with adduser on centOS. For the first few hours, i was able to adduser perfect on Debian and login just fine. Direct Admin was then installed, and I am now unable to login from all shell accounts other than root, and the ones i add from the DA interface. I will be giving out many shells, and do not want to use DA each time i need to adduser!

I took the following stops into trying to solve the problem myself (after i read previous posts on this forum)

from /etc/ssh/sshd_config I did AllowUsers <username> for each of the users. I then did
/etc/init.d/sshd restart.

After SSHD restarted, I was still unable to login from the shell accounts that I created!

The main purpose of this box is to be able to give out shell accounts to my clients, and I am unable to do so. I don't want to adduser from the Direct Admin control panel each time I need to adduser a shell account. If anyone has any solutions, please tell me!
 
What is the shell type of the user logging in? On directadmin did you check the box that says allow ssh access. If not directadmin will give them a shell that doesnt allow to login via ssh.

Try:

chsh -s /bin/bash username

Then try logging in.
 
chatwizrd,

The poster is adding users from the command line; this has nothing to do with settings in DirectAdmin.

jxx1229, if you want to allow users created from the command line instead of Directadmin to have shell access through ssh, you need to add a line for each at the bottom of the /etc/ssh/sshd_config file:
Code:
AllowUsers USERNAME
Multiple usernames are allowed per line; I generally use one per line as for me it's easier to read.

Of course replace USERNAME with the name of the user for whom you wish to allow access, and don't forget to retart the ssh daemon, sshd, after editing the file.

Jeff
 
Back
Top