From 6a5910323d3c563d57865c58fa5db2b66c85fba7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 27 Mar 2020 10:25:43 +0000 Subject: [PATCH 1/1] Suppress some warnings from sshfp --- bin/mksshfp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5