Skip to content

Instantly share code, notes, and snippets.

@tomrgio
Created June 19, 2018 12:59
Show Gist options
  • Save tomrgio/bb5427b68a586933f9512ef40a660c2d to your computer and use it in GitHub Desktop.
Save tomrgio/bb5427b68a586933f9512ef40a660c2d to your computer and use it in GitHub Desktop.
# 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