ssh-baseline: Can't start sshd baseline config at ssh server

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


**OS / Environment**

<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->

**Inspec Version**
4.37.17

Baseline Version https://github.com/dev-sec/ssh-baseline/blob/master/controls/sshd_spec.rb


**Additional context**
Add any other context about the problem here.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 28 (10 by maintainers)

Most upvoted comments

oh, i remove line with cat, it’s actual sshd_config sshd_config.txt

Regarding the unusual distribution, you are right. We build a fairly minimalistic file system ourselves using Buildroot.

I try to get some info from our team for this ticket inspec/inspec#4782

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 https://github.com/dev-sec/cis-dil-benchmark/issues/113

Let’s solve it there. If we need to fix something on our side, we will port the fix on CIS after.

access for what files inspec need on target ssh server?

/etc/ssh/ssh_config
/etc/ssh/sshd_config