Skip to content
Open
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
3 changes: 2 additions & 1 deletion controls/sshd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@
title 'Server: Disable TCPKeepAlive'
desc 'Avoid the TCPKeepAlive messages to see if the client is still alive, because they are sent over unencrypted connection and are spoofable.'
describe sshd_config("#{sshd_custom_path}/sshd_config") do
its('TCPKeepAlive') { should eq('no') }
# OpenSSH 10.6 accepts "false" for "no" and prints it in `sshd -T`
its('TCPKeepAlive') { should match(/^(no|false)$/) }
end
end

Expand Down