Loading

解决 git push 报错 kex_exchange_identification: read: Connection reset by peer

报错情况:

kex_exchange_identification: read: Connection reset by peer
Connection reset by 20.205.243.166 port 22

  • 原因分析:应该是 ssh 指纹验证过期了

解决方法

要在 SSH 配置文件中设置此设置,请编辑或新建文件 ~/.ssh/config,并添加以下部分:

Host github.com
Hostname ssh.github.com
Port 443
User git

然后 git push,会提醒确认 ssh 指纹验证信息,输入 yes后,即可成功 git push。

posted @ 2022-03-19 11:43  刘跑跑  阅读(14005)  评论(0编辑  收藏  举报