Warning: Permanently added the RSA host key for IP address ‘13.250.177.223‘ to the list of known(代码片

Posted vieber

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Warning: Permanently added the RSA host key for IP address ‘13.250.177.223‘ to the list of known(代码片相关的知识,希望对你有一定的参考价值。

报错信息

 git clone git@github.com:ElemeFE/mint-ui.git
正克隆到 'mint-ui'...
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: 无法读取远程仓库。

请确认您有正确的访问权限并且仓库存在。

mac配置git多账号设置

vi ~/.ssh/config文件
添加

Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/github

配置即可。

以上是关于Warning: Permanently added the RSA host key for IP address ‘13.250.177.223‘ to the list of known(代码片的主要内容,如果未能解决你的问题,请参考以下文章