Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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)
rename/remove your existing ~/.ssh/known_hosts
try again ssh -Tv git@github.com
and answer 'yes' when prompted
From there, the test should work.
–
–
–
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.