Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save webmechanicx/2639b65dec0595aa661ed3bb5a62b1df to your computer and use it in GitHub Desktop.
Save webmechanicx/2639b65dec0595aa661ed3bb5a62b1df to your computer and use it in GitHub Desktop.
Git error: "Host Key Verification Failed" known_hosts
Please contact your system administrator.
Add correct host key in /Users/user_name/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/user_name/.ssh/known_hosts
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.
##Solution
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
##Read More
https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment