正常使用过程中出现了以下问题

Warning: Permanently added the RSA host key for IP address
‘13.250.177.223’ to the list of known hosts. [email protected]:
Permission denied (publickey). fatal: Could not read from remote
repository.

搜索了一下发现是电脑添加的GitHub公钥丢失

解决方案:

  • ssh-****** -t rsa -C “GitHub账号”
    输入自己的GitHub账号

    然后会在user下面生成一个ssh key 我的以前生成过,GitHub上面不见了

  • 在GitHub SSH and GPG 页面上添加ssh公钥

Git 报错 Permanently added the RSA host key for IP address
Git 报错 Permanently added the RSA host key for IP address

验证一下链接

ssh -T [email protected]

Git 报错 Permanently added the RSA host key for IP address

参考链接

1.GitHub add ssh

相关文章:

  • 2021-09-12
  • 2022-03-03
  • 2021-08-13
  • 2022-01-14
  • 2021-09-21
  • 2021-10-08
猜你喜欢
  • 2021-11-29
  • 2022-01-06
  • 2021-07-02
  • 2022-12-23
相关资源
相似解决方案