Skip to content

Commit 54bd785

Browse files
committed
use correct kex for RedHat/CentOS/Oracle Linux 8
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
1 parent 23bc5fb commit 54bd785

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libraries/ssh_crypto.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize,
9696
case inspec.os[:release]
9797
when /^6\./
9898
kex = nil
99-
when /^7\./, /^8\./
99+
when /^7\./
100100
kex = kex66
101+
when /^8\./
102+
kex = kex80
101103
end
102104
# https://pkgs.alpinelinux.org/packages?name=openssh
103105
when 'arch'

0 commit comments

Comments
 (0)