Skip to content

Instantly share code, notes, and snippets.

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