Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion controls/sshd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@
title 'Server: Specify ListenAddress'
desc "Limit the SSH server to listen to a specific address. Don't let it listen on all interfaces to avoid logins from unexpected sources."
describe sshd_config(sshd_custom_path + '/sshd_config') do
its('ListenAddress') { should match(/.*/) }
its('ListenAddress') { should_not eq nil }
its('ListenAddress') { should_not match(/^\s*$/) }
its('ListenAddress') { should_not eq [] }
end
end

Expand Down