Created
June 12, 2018 14:28
-
-
Save tomrgio/7491fcad918e9878d0f2680e81d2c42a 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