Closed rndmh3ro closed 2 years ago
Successfully tested here: https://github.com/dev-sec/ansible-collection-hardening/pull/589/checks
Successfully tested here: https://github.com/dev-sec/ansible-collection-hardening/pull/589/checks
nice, I like the amount of code we can save here. One small thing regarding the
ssh_version
function, we are using thessh
client binary but it may be, that a system only hassshd
installed.
sshd sadly does not have an option to print its version (you could run sshd with an invalid option to get the version, but this also throws an error).
Signed-off-by: Sebastian Gumprich sebastian.gumprich@t-systems.com