Skip to content

Commit b809e0b

Browse files
authored
Merge pull request #204 from dev-sec/ubuntu22
add basic support for Ubuntu 22
2 parents 1f868fa + 4d9a75a commit b809e0b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

libraries/ssh_crypto.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ def valid_kexs
8282
case inspec.os[:name]
8383
# https://packages.ubuntu.com/search?keywords=openssh-server
8484
when 'ubuntu'
85-
kex = inspec.os[:release][0, 2] >= '19' ? kex80 : kex66
85+
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
8692
# https://packages.debian.org/search?keywords=openssh-server
8793
when 'debian'
8894
case inspec.os[:release]
@@ -215,7 +221,7 @@ def valid_privseparation
215221
end
216222
when 'ubuntu'
217223
case inspec.os[:release]
218-
when /^18\./, /^20\./
224+
when /^18\./, /^20\./, /^22\./
219225
ps = ps75
220226
end
221227
when 'fedora', 'alpine', 'arch'

0 commit comments

Comments
 (0)