服务器Git突然报错 ssh_exchange_identification: read: Connection reset by peer

具体原因没查,直接说解决方法:

服务器重新生成一个公钥,然后重新绑定到Git就可以了

注:如果你设置密码了,会出现提示 Enter passphrase for key '/home/mha/.ssh/id_rsa':        ,直接输入你生成密钥时绑定的密码就好了。

 

生成新的公钥命令

ssh-keygen -t rsa -C"邮箱地址"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案