Enable SSH all users

Hexweb

Verified User
Joined
Apr 29, 2014
Messages
64
Location
Netherlands
Hello all!

I've been busy with my servers and i want to enable SSH for all users (Cloudlinux + Cagefs).

To do this i've been wanting to enable it for all users in bulk.

for this i've used:
Code:
 files=`find . -name "user.conf"`; for file in $files; do sed -i $file -e "s,ssh=OFF,ssh=ON,g"; done;
Butt after enabling it and restarting directadmin and sshd i still can't login with the user accounts.
Is there another script i need to run to enable users to log in? (Users are not in the AllowUsers list in sshd_config)
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,094
Location
GMT +7.00
Hello Marc,

Users should be added with AllowUsers in sshd_config and should have /bin/bash as a shell in /etc/password.

I'm not aware of any ready solution for this unless to use curl + API, or simply modify those files in root console.
 
Top