We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f868fa + 4d9a75a commit b809e0bCopy full SHA for b809e0b
1 file changed
libraries/ssh_crypto.rb
@@ -82,7 +82,13 @@ def valid_kexs
82
case inspec.os[:name]
83
# https://packages.ubuntu.com/search?keywords=openssh-server
84
when 'ubuntu'
85
- kex = inspec.os[:release][0, 2] >= '19' ? kex80 : kex66
+ kex = if inspec.os[:release][0, 2] >= '22'
86
+ kex85
87
+ elsif inspec.os[:release][0, 2] >= '19'
88
+ kex80
89
+ else
90
+ kex66
91
+ end
92
# https://packages.debian.org/search?keywords=openssh-server
93
when 'debian'
94
case inspec.os[:release]
@@ -215,7 +221,7 @@ def valid_privseparation
215
221
end
216
222
217
223
218
- when /^18\./, /^20\./
224
+ when /^18\./, /^20\./, /^22\./
219
225
ps = ps75
220
226
227
when 'fedora', 'alpine', 'arch'
0 commit comments