Reputation: 589
I have alareay add id_rsa.pub file content into my Github Account Setting.
My OS is Windows10.
Upvotes: 0
Views: 9337
Reputation: 1326716
First, make sure to answer yes when asked about the authenticity of GitHub host: you need to have your %USERPROFILE%\.ssh\known_hosts
updated.
Second, you have re-generated and overwritten your %USERPROFILE%\.ssh\id_rsa.pub
public key: make sure that new key is indeed registered (as one line) in your GitHub profile.
Third, check that you can read that same public key from your bash session:
cat /c/Users/lijp/.ssh/id_rsa.pub
Check also your public key fingerprint with the one recorded on GitHub:
ssh-keygen -E md5 -lf /c/Users/lijp/.ssh/id_rsa.pu
Upvotes: 3