coding 绑定 ssh 公钥后 还报没有权限???

前些天遇到电脑死机 C盘崩溃 痛哭

今天重装系统  安装环境后 用git 命令更新代码

一更新出现 

git@e.coding.net: Permission denied (publickey). 没有权限???

 

!!!因为重装系统ssh 原公钥私钥丢失 重新创建

ssh-keygen -t rsa -C 'xxxxxxxx'

然后去coding平台项目下 绑定公钥

绑定完成后

 

再次命令操作 git pull

git@e.coding.net: Permission denied (publickey).
fatal: Could not read from remote repository.

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

还是没有权限

 

在几番查找之下,找到一个解决办法

更改git配置

我的git配置位置为 C:\Program Files\Git\etc\ssh\ssh_coding

在最底部增加  Host *.coding.net

 

第三次更新代码 git pull 后  成功 !!!

 

posted @ 2022-05-05 15:28  阿虎日常积累  阅读(514)  评论(0编辑  收藏  举报