Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried running query commands on a Ubuntu 16.04 server to know the configuration set up, if it is aligned with the CIS benchmark. There are cases that no output is returned after running the command, Did it mean that it is set up on default settings or there is no configuration at all?
you need to check man page of sshd_config to understand the meaning of those settings and how are they handled.
and also check man page of grep to see how does it work.
Does that mean that it is not configured for allowed users, allowed groups, denied users and denied groups?
grep returns nothing when the search term is not found in the file. In your case, it means that your sshd_config file doesn’t set these configuration parameters, and the ssh server uses their default values.
Often, the parameters are contained in the file but commented out. Remove the “^” character from your commands to see such lines.
Last edited by berndbausch; 05-20-2019 at 03:17 AM.
Does that mean that it is not configured for allowed users, allowed groups, denied users and denied groups?
it could also mean that "it" (assuming you mean the program reading the configuration, not the config file itself) uses (builtin) default values.
it could also mean that the configuration options in question are preceded by spaces.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.