I am getting error when I tried ssh for git.com.
Error: You need access to git with ssh
This was working fine until very recent.
I am getting error when I tried ssh for git.com.
Error: You need access to git with ssh
This was working fine until very recent.
Copyright © 2021 Jogjafile Inc.
The reason is recently GitHub.com’s RSA SSH private key was briefly exposed in a public GitHub repository. So they have changed their RSA SSH host key used to secure Git operations for GitHub.com
You can verify whether this is the exact reason by running below command.
If you see following warning, above causes the issue.
Run following commands to update the GitHub.com’s RSA SSH key in your machine
Step 1: Remove the old key by running this command:
Step 2: automatically update GitHub.com’s RSA SSH key in your ~/.ssh/known_hosts
refer https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/