From 54bd785dfd9aa549164b55890afbb6f4e0df1274 Mon Sep 17 00:00:00 2001 From: Martin Schurz Date: Wed, 15 Jul 2020 18:40:40 +0200 Subject: [PATCH] use correct kex for RedHat/CentOS/Oracle Linux 8 Signed-off-by: Martin Schurz --- libraries/ssh_crypto.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/ssh_crypto.rb b/libraries/ssh_crypto.rb index ab3f023..04e9d7f 100644 --- a/libraries/ssh_crypto.rb +++ b/libraries/ssh_crypto.rb @@ -96,8 +96,10 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, case inspec.os[:release] when /^6\./ kex = nil - when /^7\./, /^8\./ + when /^7\./ kex = kex66 + when /^8\./ + kex = kex80 end # https://pkgs.alpinelinux.org/packages?name=openssh when 'arch'