Skip to content

SSH key erroneously unverified automatically #23195

Discussion options

You must be logged in to vote

I’ve seemingly solved the issue here. Don’t know whether this was due to a mistake on my part or GitHub’s … I’m pretty sure that, on this occasion, the cause was my error even though GitHub reported the wrong error message and the wrong SSH key’s fingerprint in its error message.

I discovered my error by adding IdentitiesOnly yes to my ~/.ssh/config for Host GitHub.com

This revealed that I had mis-spelled the IdentityFile ~/.ssh/github.rsa line and the ssh key being used was not the one I intended.

So this is what I have now on my MacOS

Host *
     IdentityFile ~/.ssh/id_rsa
     UseKeychain yes
     ForwardX11 no
     AddKeysToAgent yes
     ForwardAgent yes

Host github.com
User git
Hos…

Replies: 10 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
1 reply
@sandeepV2
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants