当前位置:网站首页 > 更多 > 涨姿势 > 正文

[每日一学] Warning: Permanently added 'git.*.cn' (ED25519) to the list of known hosts. [email protected]*.cn: Permission denied (publickey). Could not read from remote repository.

作者:CC下载站 日期:2022-04-27 00:00:00 浏览:51 分类:涨姿势

报错截图:

原因:没有用户认证
解决:
第1步:建立SSH Key。在windows下查看[c盘->用户->本身的用户名->.ssh]下是否有id_rsa、id_rsa.pub文件,若是没有须要手动生成。

ssh-keygen -t rsa -C "git用户名"

然后直接回车,这个目录就会生成两个文件

打开id_rsa.pub查看公钥,全部复制到git后台。

然后就可以了

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯