From: Tom Hughes Date: Fri, 27 Mar 2020 10:25:43 +0000 (+0000) Subject: Suppress some warnings from sshfp X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/6a5910323d3c563d57865c58fa5db2b66c85fba7?ds=inline Suppress some warnings from sshfp --- diff --git a/bin/mksshfp b/bin/mksshfp index 3c1cd1d..ef8dda0 100755 --- a/bin/mksshfp +++ b/bin/mksshfp @@ -4,7 +4,7 @@ my %hosts; if (-f "/etc/ssh/ssh_known_hosts") { - open(SSHFP, "-|","sshfp", "-k", "/etc/ssh/ssh_known_hosts") || die $!; + open(SSHFP, "-|","sshfp -k /etc/ssh/ssh_known_hosts 2>&1") || die $!; while (my $line = ) { @@ -45,7 +45,7 @@ if (-f "/etc/ssh/ssh_known_hosts") } } } - else + elsif ($line !~ /^WARNING: Assuming /) { warn $line; }