添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
发财的移动电源  ·  c++ - Use of typeid ...·  1 年前    · 
重情义的香槟  ·  SQL NULL 值 – IS NULL ...·  1 年前    · 
一身肌肉的咖啡  ·  python - Holt-Winters ...·  1 年前    · 
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.

    The known_hosts file doesn't exist. I think it was never created, because I never saw it. – Mayank Tiwari Apr 9, 2021 at 11:48 Host key verification failed. again. But, this time the output is longer. Should I edit the question and add the entire output? – Mayank Tiwari Apr 9, 2021 at 14:12 @MayankTiwari Yes (or reference the content to an external pastbin service if it is too big) – VonC Apr 9, 2021 at 14:54 I'm so sorry. I pressed enter, instead of typing 'yes'. It works now. Hi mayank996! You've successfully authenticated, but GitHub does not provide shell access. Thank you. – Mayank Tiwari Apr 9, 2021 at 15:37

    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.