当前位置: 代码迷 >> 综合 >> GIT SSH
  详细解决方案

GIT SSH

热度:45   发布时间:2024-03-07 22:55:58.0

电脑升级系统以后会出现秘钥失败

Host key verification failed.
fatal: Could not read from remote repository.

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

这个时候需要重写ssh,必要的话删除.ssh文件夹

执行下面3行即可

 ssh-keygen -t rsa -f tapas_gerrit
 ssh-keygen -t rsa -C "xxx@xx.com
 cat ~/.ssh/id_rsa.pub
  相关解决方案