From 1446cc00a08d5e44fc560ae8676ccde4e06798dc Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Fri, 23 Oct 2026 10:48:27 +0300 Subject: [PATCH] accept TCPKeepAlive false in sshd-35 OpenSSH 10.6 made TCPKeepAlive multi-valued, and `sshd -T` now prints the disabled state as "false" rather than "no". Accept both spellings of the off state. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Dimitris Karakasilis --- controls/sshd_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controls/sshd_spec.rb b/controls/sshd_spec.rb index a81db94..bcd83a6 100644 --- a/controls/sshd_spec.rb +++ b/controls/sshd_spec.rb @@ -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