BLIT/ssh-fingerprints.sh

10 lines
181 B
Bash
Executable file

#!/bin/bash
function fingerprints() {
local file="$1"
while read l; do
[[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l
done < $file
}
fingerprints "$1"