Skip to content

Instantly share code, notes, and snippets.

@dober
Created March 1, 2017 09:50
Show Gist options
  • Save dober/8b0cdca09d486abc7c01cfb263e79c82 to your computer and use it in GitHub Desktop.
Save dober/8b0cdca09d486abc7c01cfb263e79c82 to your computer and use it in GitHub Desktop.
get all fingerprints for .ssh/authorized_keys file
while read l; do
[[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l;
done < .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment