Warning: Permanently added 'git.*.cn' (ED25519) to the list of known hosts. git@git.*.cn: Permission denied (publickey). Could not read from remote repository.

Warning: Permanently added 'git.*.cn' (ED25519) to the list of known hosts. git@git.*.cn: Permission denied (publickey). Could not read from remote repository.

Lan
Lan
2022-04-27 / 0 评论 / 1,976 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2022年04月27日,已超过701天没有更新,若内容或图片失效,请留言反馈。

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

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

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

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

然后就可以了

2

评论 (0)

取消