From a5898701396a4329439e9814c23dfbd89d554ac2 Mon Sep 17 00:00:00 2001 From: Gerhard Gonter <ggonter@gmail.com> Date: Mon, 2 Jan 2017 15:09:58 +0100 Subject: [PATCH] alternative but not implemented method for version checking --- show_fingerprints.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/show_fingerprints.pl b/show_fingerprints.pl index d71053a..4c18011 100755 --- a/show_fingerprints.pl +++ b/show_fingerprints.pl @@ -58,6 +58,14 @@ sub get_ssh_version elsif ($l eq ' ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]') { $has_E= 1; } } + if ($version eq 'unknown') + { + my @cmd2= qw(ssh -V); # let's try this ... + my $res2= `@cmd2 2>&1`; + print "res2=[$res2]\n"; + # TODO: figure out how to match that ... + } + ($version, $has_E); } -- GitLab