Skip to content

Instantly share code, notes, and snippets.

@alexrutar
Last active October 15, 2022 20:27
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 alexrutar/b6cc8df708f70d9bf03bcdbe59dc81cc to your computer and use it in GitHub Desktop.
Save alexrutar/b6cc8df708f70d9bf03bcdbe59dc81cc to your computer and use it in GitHub Desktop.
Get SSH Public Key Hash

To get the SHA256 hash of an existing public key, simply run

ssh-keygen -lvf path/to/key.pub

If you want the MD5 hash (or another supported format), run something like

ssh-keygen -lv -E MD5 -f path/to/key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment