Created
June 19, 2018 12:59
-
-
Save tomrgio/bb5427b68a586933f9512ef40a660c2d 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
# encoding: utf-8 | |
describe sshd_config do | |
its('Banner') { should eq '/etc/issue.net' } | |
its('ChallengeResponseAuthentication') { should eq 'yes' } | |
its('PasswordAuthentication') { should eq 'yes' } | |
end | |
describe file('/etc/issue.net') do | |
its('content') { should match /SUPER SECURE BANNER/ } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment