Add windows as a supported platform for ssh_config

Openssh for windows is a thing, so allow the ssh_config and sshd_config
resources to be used on it.

Signed-off-by: Raphael Geissert <atomo64@gmail.com>
This commit is contained in:
Raphael Geissert 2020-10-22 13:19:15 +02:00
parent f9da70d647
commit 2558b38a75

View file

@ -7,6 +7,7 @@ module Inspec::Resources
class SshConfig < Inspec.resource(1)
name "ssh_config"
supports platform: "unix"
supports platform: "windows"
desc "Use the `ssh_config` InSpec audit resource to test OpenSSH client configuration data located at `/etc/ssh/ssh_config` on Linux and Unix platforms."
example <<~EXAMPLE
describe ssh_config do
@ -80,6 +81,7 @@ module Inspec::Resources
class SshdConfig < SshConfig
name "sshd_config"
supports platform: "unix"
supports platform: "windows"
desc "Use the sshd_config InSpec audit resource to test configuration data for the Open SSH daemon located at /etc/ssh/sshd_config on Linux and UNIX platforms. sshd---the Open SSH daemon---listens on dedicated ports, starts a daemon for each incoming connection, and then handles encryption, authentication, key exchanges, command execution, and data exchanges."
example <<~EXAMPLE
describe sshd_config do