No more AllowUsers in sshd_config

Version 1.61.0

Feature
Finished

Since it's not really needed and only adds extra complexity to the system, DirectAdmin will now have checks to see if there are any AllowUsers lines in the sshd_config file. If there are, the previous logic is used where Users are added/removed from the sshd_config anytime ssh is enabled/disabled for this User. However, if there are zero lines that start with AllowUsers, then DA assumes they will not be used, and no future AllowUsers lines will be added. ----- TODO: The setup.sh will also be changed to only add AllowUsers root, AllowUsers admin if there are already AllowUsers entries in this file. This must be done at or after the time of the full DA release, so that the live setup.sh still adds them for the previous DA version.

Interested to try DirectAdmin? Get a 30-day Free Trial!