How to verify github SSH keys… here is a solution to the problem.
How to verify github SSH keys
I want to verify that my SSH key in github matches a local file on my computer.
The github key appears to be SHA256, encoded in base64, but the local key I encoded with this command doesn’t seem to match it.
$ cat ~/.ssh/github.pub | sha256sum | base64
Is there a better way to achieve what I want to do?
Solution
An easy way to test if they match is to authenticate via ssh on the command line.
After setting your ssh key, type:
ssh -T [email protected]
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection