X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/1a253477b19ebc72ca2b36811666560944e0d886..88e9f7fbdbfb04bd64d62f4df424451662abfb99:/bin/mksshfp 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; }