Skip to content

Instantly share code, notes, and snippets.

@szaydel
Forked from hvr/gist:662196
Created July 7, 2013 01:38
Show Gist options
  • Save szaydel/5941926 to your computer and use it in GitHub Desktop.
Save szaydel/5941926 to your computer and use it in GitHub Desktop.
#!/bin/bash
( while read L
do echo $L > /tmp/pubkey
printf "%-16s => " $(cut -f 3 -d ' ' /tmp/pubkey)
ssh-keygen -l -f /tmp/pubkey
done
rm /tmp/pubkey
) < .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment