mirror of
https://github.com/brmlab/BLIT.git
synced 2025-06-07 19:34:00 +02:00
ssh-fingerprints.sh to get fingerprints of all keys from file
This commit is contained in:
parent
187a19b079
commit
36735dfaa2
1 changed files with 10 additions and 0 deletions
10
ssh-fingerprints.sh
Executable file
10
ssh-fingerprints.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/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"
|
Loading…
Add table
Add a link
Reference in a new issue