Sshd: Too many allow users

jep

Verified User
Joined
Nov 12, 2003
Messages
79
Hi,

I think I've found some bug or something. My client added a new account today, and suddenly ssh stopped.

I had telnet running on the local network interface so I was able to fix it. The error was:

[root@server1 root]# service sshd restart
Stopping sshd: [FAILED]
Starting sshd:/etc/ssh/sshd_config line 352: too many allow users.
[FAILED]


After I deleted some users, it worked again. Do you have a solution for this for the future? :)
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,068
Hmm..

I think the workaroud would be to get rid of all of the AllowUsers lines completely.

-> Lie to DA and give it a new path to the sshd_config file (just a bogus file):
- touch /etc/ssh/sshd_config_fake
- edit /usr/local/directadmin/conf/directadmin.conf and change
sshdconfig=/etc/ssh/sshd_config
to
sshdconfig=/etc/ssh/sshd_config_fake
- edit the real /etc/ssh/sshd_config and remove *all* AllowUsers lines. (If you leave even 1, then only that 1 user will be able to login.) .. you need to make sure all AllowUsers lines are gone before restarting sshd.

John
 
Top