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

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM