github 配置SSH报错“kex_exchange_identification: read: Connection reset by peer”

4,379 阅读1分钟

github配置完SSH之后验证一直报错,检验了步骤也都是没问题的。然后尝试使用Sourcetree拉去代码,总是提示让输入密码。

  • Sourcetree一直提示如下内容:
Password Required

For user git on host github.com
  • 接着使用命令ssh -T xxx@qq.com去验证配置也是一直报错

kex_exchange_identification: read: Connection reset by peer

  • 后来看了这个博客之后才找到解决方案,原来我是拉掉了一个步骤,所以就按照这个方法解决了一下好了。 ####最终解决方案:
  • 1.在配置完毕之后先使用命令git clone git@github.com:xxx/xxxProduct.git去拉去代码。
  • 2.接着会有如下提示:

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,xx.xx.xx.166' (ECDSA) to the list of known hosts.

  • 3.输入yes,然后就会有如下提示。说明这下是真正的配置好了。

Snip20211210_1.png