Github has changed their host key -
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
So, when trying to clone a repo of mine via the SSH url, I got the message
Offending RSA key in /home/myusername/.ssh/known_hosts:3
remove with:
ssh-keygen -f "/home/myusername/.ssh/known_hosts" -R "github.com"
Host key for github.com has changed and you have requested strict checking.
So I did
ssh-keygen -f "/home/myusername/.ssh/known_hosts" -R "github.com"
and answered "yes" when asked to save the new key.
No comments:
Post a Comment