X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/1a253477b19ebc72ca2b36811666560944e0d886..e76c62e54660d8fc621c80e337a6cb4b0f4aaaba:/bin/mksshfp?ds=inline diff --git a/bin/mksshfp b/bin/mksshfp index 314eb43..ef8dda0 100755 --- a/bin/mksshfp +++ b/bin/mksshfp @@ -4,11 +4,11 @@ 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 = ) { - if ($line =~ /^(\S+) IN SSHFP (\d+) (\d+) ([0-9A-F]+)$/) + if ($line =~ /^(\S+)\.openstreetmap\.org IN SSHFP (\d+) (\d+) ([0-9A-F]+)$/) { my $host = $1; my $algorithm = $2; @@ -45,7 +45,7 @@ if (-f "/etc/ssh/ssh_known_hosts") } } } - else + elsif ($line !~ /^WARNING: Assuming /) { warn $line; }