Skip to content

Instantly share code, notes, and snippets.

@kaatinga
Last active February 2, 2022 09:18
Show Gist options
  • Save kaatinga/899ef1c48acc0e0607c93666c82252d2 to your computer and use it in GitHub Desktop.
Save kaatinga/899ef1c48acc0e0607c93666c82252d2 to your computer and use it in GitHub Desktop.
Resolving `Host key verification failed`

If you see message when update dependecies in Go or in another cases when update git repositories:

Host key verification failed.
fatal: Could not read from remote repository.
	
Please make sure you have the correct access rights
and the repository exists.

Add to .ssh/config the following setting:

Host *
    StrictHostKeyChecking no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment