解決 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。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM