報錯情況:
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。
