Created
November 21, 2017 22:03
-
-
Save Staggerlee011/4f9e407a43f92e12763f481e48f9293c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a profile (cookbook) | |
inspec init profile SQLServerSecurity | |
# check profile is valid | |
insec check SQLServerSecurity | |
# Run single inspec.rb file | |
inspec exec mytest.rb | |
# Run a profile | |
inspec exec SQLServerSecurity | |
# test remote machine via ssh | |
inspec exec SQLServerSecurity --key-files /path/keys/ssh.key --target ssh://[email protected] | |
inspec exec mytest.rb --key-files /path/keys/ssh.key --target ssh://[email protected] | |
# test remote machine via WinRM | |
insec exec mytest.rb --target winrm://[email protected] --password SuperSecretPassword | |
# test remote docker | |
inspec mytest.rb --target docker://containerid | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add
--sudo
to the command.