Mastering Development

(Github) “Testing your SSH connection” -> host key verification failed

I followed setting-up-git guide. It didn’t work.
I also tried to follow the GitHub’s connecting-to-github-with-ssh guide. It didn’t work either.
I keep getting same error :

host key verification failed.

After googling found this suggestion: ssh-keygen -R hostname.

Tried replacing hostname with and

Still same result : do_known_hosts: hostkeys_foreach failed: No such file or directory.

The .ssh diirectory cotains below files:


OS:- Ubuntu 20.04 LTS (Focal Fossa)

Leave a Reply

Your email address will not be published. Required fields are marked *