fresh install SSH does not work even if enable SSH is checked on the admin page. Bug?

geek0000

Verified User
Joined
Aug 26, 2020
Messages
13
Fresh install SSH does not work even if enable SSH is checked on the admin page

I spent countless hours trying to troubleshoot the problem, only to realize:
/etc/passwd admin is set to /bin/false

Is this a bug? Or am I wrong?

It would be my assumption that admin user should have shell set to /bin/bash if "SSH" is checked on the users page.
 
Could be a bug not sure.
This

and 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.
*IMPORTANT: For systems who require the use of "su" to access the root account, but do not use "admin" to do it, that usename *must* be added to the /etc/ssh/sshd_config before logging out or else they will not be able to login and and turn won't be able to su to root any longer. This isn't as relevant for RedHat systems, because the default is to enable root login, but for most FreeBSD systems, su is required, and the starting use *must* be in the wheel group, which a newly created "admin" would not be.

Admin is set bin/false on my system I have debian11. Is the allowusers option in the config as well for you?
 
@bdacus01
yes, and will break change again to this future. if added any alloweduser to sshd_config.

this future will prevents cause issued to something like this.

@geek0000
default should have /bin/bash in passwd file when enabled.
What's your OS and DA build version ?

maybe create ticket to DA staff for looking issued.
 
@geek0000
default should have /bin/bash in passwd file when enabled.
What's your OS and DA build version ?
@jamgames2
Yes, that is the expected behavior.
I am using Rocky Linux release 8.5 (Green Obsidian),
Directadmin version 1.63.6
custombuild version 1.0.37

It was a brand new install that I did.
 
Back
Top