sanskrit-lexicon / COLOGNE

Development of http://www.sanskrit-lexicon.uni-koeln.de/
18 stars 3 forks source link

Github remote host problem and solution #411

Open funderburkjim opened 1 year ago

funderburkjim commented 1 year ago

Anyone pushing a repository (@drdhaval2785 @Andhrabharati @AnnaRybakovaT @funderburkjim or others) may encounter an alarming message.

git push
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in /c/Users/jimfu/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/jimfu/.ssh/known_hosts:1
RSA host key for github.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This is discussed at https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

Never fear! This is not too hard to remedy.

Below is one way to do it.

funderburkjim commented 1 year ago

copy paste solution

Find your 'known_hosts' file.
In my case it is in directory c:/Users/jimfu/.ssh/

Now you are ready to push. You will probably see a warning from the push that looks like:

git push
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
(And then the normal output from git push will appear).

Hope this info works for you!

Andhrabharati commented 1 year ago

I just tried pushing a test file & no issues encountered.

[I seem to be not using the -ssh option.]