Git: Host Key Verification Failed [Duplicate]

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.

Click Here to check the Image

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
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest