AllowUsers directive in sshd_config

Acid-Duck

Verified User
Joined
May 20, 2004
Messages
34
Location
In the TEE dot O
Hi,

I was reading some documentation related to directadmin and somewhere I saw this:

For all SSH accounts created with DirectAdmin, it adds the "AllowUsers" option to the /etc/ssh/sshd_config file. When DirectAdmin is installed, it will add "root" and "admin" to that file under the AllowUsers option. Any other users who have had SSH account on the system will also require to be added to that file in order to access the server via SSH


The users which already existed on the system have never been added to sshd_config yet I'm having no problems logging in with those users. I guess this isn't really a problem but it still bothers be that this seems to be the opposite of what I ready. I'm using the latest DirectAdmin and it's on a RH 9.0 box. Any suggestions?



Erik
 
If you don't have any AllowUsers lines, then by default the sshd daemon will allow all users.

Jeff
 
it could be you have 2 versions of sshd installed. eg. on my server I have openssh-portable port installed which runs from /usr/local/sbin/sshd whilst DA modifies the config for the base sshd which runs from /usr/sbin/sshd, so the config it changes has no affect on the sshd I run. Also configuration changes need you to restart sshd to take affect.
 
Back
Top