报错信息:

kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解决方法:

输入

ssh-keygen -t ed25519 -C "github注册时的邮箱"

然后一路回车直到生成 public key,如下图所示

 接着把.ssh/id_ed25519.pub的内容添加到github,具体在下图,点击Settings

 

添加完成后就可以继续把代码推到远程仓库了 

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐