Created
February 28, 2022 20:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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