ssh -T git@github.com 出错

ssh -T git@github.com 出错

The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? no

can't connect to github via ssh


Did you try to add github as known host?

If you have an existing known_hosts file and do not want to overwrite (as @Puce suggested in the comment), use this.

ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
This will add the rsa key to the end of the known_hosts.

If you have no idea what known_hosts is/means, or you never engaged with it for sure, you can simply write a new one, but note that this will remove the existing one if you had any.

ssh-keyscan -t rsa github.com > ~/.ssh/known_hosts

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一、Homebrew简介、安装以及git安装 Homebrew简称brew,是Mac系统上软件包的管理工具,能在M...
    程旭媛阅读 7,748评论 1 1
  • 现在使用git等很多,自己也尝试了下,结果在安装后执行一下命令等时候总是报permission denied ss...
    Terry_Pan阅读 9,449评论 0 4
  • 近期在linux上搭建了用于分布式存储的----GlusterFS和Ceph这两个开源的分布式文件系统。 前言--...
    ZNB_天玄阅读 7,802评论 0 0
  • 简书连载风云录蔷薇小说目录择一世长安专题择一世长安【目录】 文丨蔷薇下的阳光 上一章丨《第五十七章:一夜一翻牌》 ...
    蔷薇下的阳光阅读 3,964评论 4 9
  • 感谢各位关注,因个人原因,产品及设计类分析文章将不再更新,很遗憾。
    龙隐阅读 3,704评论 1 1