From 4f3651f400c5ff1a52f1fb5f87651cee80dd8ad0 Mon Sep 17 00:00:00 2001 From: Wojciech Kopras Date: Wed, 8 May 2019 12:53:09 +0200 Subject: [PATCH] RHEL6 accepts crypto settings from openssh 5.9 Signed-off-by: Wojciech Kopras --- libraries/ssh_crypto.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/ssh_crypto.rb b/libraries/ssh_crypto.rb index 38bfb60..ae40467 100644 --- a/libraries/ssh_crypto.rb +++ b/libraries/ssh_crypto.rb @@ -100,7 +100,7 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen when 'redhat', 'centos', 'oracle' case inspec.os[:release] when /^6\./ - kex = nil + kex = kex59 when /^7\./ kex = kex66 end @@ -153,7 +153,7 @@ def valid_macs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen when 'redhat', 'centos', 'oracle' case inspec.os[:release] when /^6\./ - macs = macs53 + macs = macs59 when /^7\./ macs = macs66 end