-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't start sshd baseline config at ssh server #196
Comments
Can you try running the command like this?
|
yes, please see output
|
i know my server is configured for password access and want sshd check 022 to say you don't have keys used But this check is simply skipped like many others |
There seems to be a problem with accessing the files.. Can you run the following command on the target server and paste the output?
|
Can you please run |
uname -a (ssh server) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Don't comment any code you don't know, it just breaks things. :) This is probably not a problem with the inspec profile but rather with your machine. Do you have other machines you can test? |
Yes, see please, what do you think?
|
you say that "There seems to be a problem with accessing the files" - access for what files inspec need on target ssh server? Thank a lot, for you help |
|
ok, tell me please. how this access should be configured? what right we should assign to this files? |
The permissions are correct. |
yes. i connect with root and with empty password |
Please test:
|
inspec> cat /etc/ssh/sshd_config ps. it linux running at IoT device |
Is the file you attached the exact content of the cat ? Or does it also contain the cat line ? |
There seems to be a malformed sshd_config file as the internal inspec sshd_config method does not detect it correctly. You also open a similar issue here dev-sec/cis-dil-benchmark#113 Let's solve it there. If we need to fix something on our side, we will port the fix on CIS after. |
It's actual config of ssh server, output of sshd_config |
Ok! Thanks, lets fix it there Perhaps, since sshd could be done by our developers Can you tell me what sshd_config should look like correctly? We would then correct him, if necessary. Or how i should formulate question for my developers? For sshd fixing, if needed file.txt it's my sshd_config |
Ok, what troubles me is that file.txt starts with The internal method not detecting the file paramters is concerning. What is your linux distrib exactly ? You said that it runs an IoT device, perhaps are we in presence of a border effect due to a very peculiar linux distrib. If it is the case, you should send a reply to this ticket inspec/inspec#4782 explaining the specific OS you are in and help the core team increasing the supported OSes list. |
oh, i remove line with cat, it's actual sshd_config Regarding the unusual distribution, you are right. I try to get some info from our team for this ticket inspec/inspec#4782 |
Describe the bug
Can't start sshd baseline config at ssh server
Expected behavior
expected that sshd config start without errors
Actual behavior
in attached screen
Example code
in attached screen
Baseline Version
https://github.com/dev-sec/ssh-baseline/blob/master/controls/sshd_spec.rb
The text was updated successfully, but these errors were encountered: