Skip to content

Instantly share code, notes, and snippets.

@zas
Created February 28, 2022 20:49
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 zas/d7689926a30d4345093982cf5cb92dae to your computer and use it in GitHub Desktop.
Save zas/d7689926a30d4345093982cf5cb92dae to your computer and use it in GitHub Desktop.
Calculate sha256 hash from a pub key to compare to github deploy key
#!/bin/bash
# calculate sha256 hash from a pub key to compare to github deploy key
KEY=$1
KEYPATH="~/.ssh/${KEY}.pub"
ssh-keygen -E sha256 -l -f "$KEYPATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment