Skip to content

Instantly share code, notes, and snippets.

@xcambar
Created August 6, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcambar/dec8cbff2fc497bd8502 to your computer and use it in GitHub Desktop.
Save xcambar/dec8cbff2fc497bd8502 to your computer and use it in GitHub Desktop.
A quick look on your SSH keys - Displays the filename, owner, size and algorithm used.
find ~/.ssh -name *.pub -exec \
sh -c 'echo "$1" `ssh-keygen -l -f "$1"`' _ {} \; \
| awk -F" " -v OFS=" " '{$3="";tmp=$2;$2=$4;$4=tmp;print}' \
| column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment