git推送远程仓库报错解决
kex_exchange_identification: Connection closed by remote hostConnection closed by 20.205.243.166 port 22fatal: Could not read from remote repository.Please make sure you have the correct access rights
·
报错信息:
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
添加完成后就可以继续把代码推到远程仓库了
更多推荐
已为社区贡献1条内容
所有评论(0)