I am Trying to make a commit to my repository but when i click on Publish Branch then an error occurs please help me guys I need help with office work and I am new.
Asked
Active
Viewed 6,334 times
-1
-
https://stackoverflow.com/search?q=%5Bgit%5D+Host+Key+Verification+Failed – phd Dec 24 '21 at 12:40
1 Answers
1
There are two solutions for this:
Switch the remote URL to use HTTPS instead of SSH (you should not have any authentication issues as long as you are logged in with your GitHub account in GitHub Desktop).
Get SSH working. The host key verification failed error means that the host key from GitHub Enterprise isn't in your known_hosts file. You should be able to fix this by running the following command from Git Bash:
ssh-keyscan -H <GitHub_URL> >> ~/.ssh/known_hosts

Bhushan Uniyal
- 5,575
- 2
- 22
- 45