0
点赞
收藏
分享

微信扫一扫

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


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

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

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

解决方案:

  • ssh-keygen -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


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

验证一下链接

ssh -T git@github.com

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

参考链接

1.​​GitHub add ssh​​


举报

相关推荐

0 条评论