Git拉取代码提示“Permanently added 'gitlab.xxx.com,10.16.36.43' (ECDSA) to the list of known hosts....”
git拉去代码提示以下错误:
”Warning: Permanently added 'gitlab.xxx.com,10.16.36.43' (ECDSA) to the list of known hosts.
git@gitlab.xxx.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.“
大概意思就是说我要clone的项目的这个gitlab的主机不可知,需要让我配置一下。
【问题解决】 参考文章:https://blog.csdn.net/weixin_39340288/article/details/81541817
1.cmd 命令界面录入ssh-keygen -t rsa -C "xxx@xxx.com" //重新生成rsa key
2.一直enter键,即可生成新的key,如上图所示。
3.去指定目录找到 id_rsa 文件,如下图所示。
4.将文件中的id_rsa内容全部复制到粘贴到github,个人setting--SSH and GPG keys 添加 个新的key