My git broke today somehow. Tried to push to a repo I’ve been working on just fine for weeks, and suddenly got a “REMOTE HOST IDENTIFICATION HAS CHANGED!” message.
I’m a new user and the forum thinks i’m posting spam links I guess, so from now on below, I will use “githubcom”, just pretend there is a period before “com”.
ssh-keygen -R githubcom
It did a thing, then I tried to push again and get:
The authenticity of host ‘githubcom (184.108.40.206)’ can’t be established.
ECDSA key fingerprint is SHA256:lepP9TaVzAR5aUTBvGePsIAknE4SuZTUlJyc8BgtqUU.
Are you sure you want to continue connecting (yes/no)?
I typed yes and got:
Warning: Permanently added ‘githubcom,220.127.116.11’ (ECDSA) to the list of known hosts.
But it won’t accept my password.
And now whenever I try to push or pull any repo, it asks for “git@githubcom’s password:”. I’ve tried every password I know, and nothing works.
If I type my password in 3 times it says “git@githubcom: Permission denied (publickey,password).”
I’ve reset my github password 3 times.
I’ve removed git from Windows Credential Manager.
I’ve generated and added a new SSH key to github.
I downloaded git for windows. Added the new key to ssh-agent.
Same issue with ssh -T git@githubcom and ssh -vT git@githubcom
I also tried creating a personal access token, but that didn’t work either.
I have no idea how this happened and now I’m stuck and can’t work.