3 # http://dank.qemfd.net/dankwiki/index.php/SSHFP
8 open IN, "ssh-keygen -f /etc/ssh/ssh_host_rsa_key.pub -r $ARGV[0] |";
12 my ($host, $in, $sshfp, $alg, $fptype, $fp) = split " ", $FP;
13 my $out = sprintf("\\%03o\\%03o", $alg, $fptype);
14 for (my $i = 0; $i < length($fp); $i += 2) {
15 $out .= sprintf("\\%03o", hex substr($fp, $i, 2));
17 printf(":%s:44:%s:\n", $host, $out);