Categories
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 github.com and 13.234.176.102.

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

The .ssh diirectory cotains below files:

id_ed25519
id_ed25519.pub
id_rsa
id_rsa.pub

OS:- Ubuntu 20.04 LTS (Focal Fossa)

Leave a Reply

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