kex_exchange_identification: read: Connection reset by peer

1,030 阅读1分钟

git clone项目时诡异的报错

kex_exchange_identification: read: Connection reset by peer Connection reset by xxx.xxx.xx.xx port 22 fatal: 无法读取远程仓库。

原因分析

应该是ssh指纹验证过期了

解决办法:

要更新ssh配置,编辑或新建~/.ssh/config文件,添加以下部分

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

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

文章出处

www.cnblogs.com/liuhanxu/p/…