Own added user gets banned from SSH after disable SSH for an another user in DA

Timmm

Verified User
Joined
Sep 12, 2005
Messages
29
Location
Amsterdam, The Netherlands
On my server I setup an useraccount (useradd from commandline) for security reasons. (su - to root after SSH logon).

Within DA I setup a domain and gave the user of this domain SSH privileges.

When I changed the user for NOT be able to login using SSH my other user disappeared out of /etc/ssh/sshd_config : line: AllowUsers {username}

Does anybody else had this issue too?

Thanks Timmm
 
The issue I had was that the users that were added to the system before DA was installed suddenly couldn't log in anymore.

<edit> Those usernames were not in the sshd config file - I am not sure whether DA removed them or whether DA installed the need for the names to be present in the sshd_config file </edit>

I couldn't figure out how I could have forgotten my password... :-) Anyhow, manually adding those names in /etc/ssh/sshd_config (AllowUsers) fixed that.

Don't know if this even answers your question, but I bumped into your post while looking for an answer to mine ;-)
 
Last edited:
Well not exactly... Before I tried to disable root from SSH i thought try my other user once again... :)

Saved me a journey to the datacenter!

But as there are more useres experiencing this problem....

Solution? Anyone?
 
DA changes the sshd config file so only listed users can log in through ssh.

So you'll have to add the required lines to your sshd config file.

Because the way sshd works if there's even one instance of the line the limitation is turned on, then there's no way to keep DA from turning it on.

If you continue to create users you can create a custom adduser script that will add the proper line to the config file every time a user is created.

Jeff
 
Back
Top