解决码云出现git@gitee.com: Permission denied (publickey).

官方解决文档:

http://git.mydoc.io/?t=154712

1)、重新生成ssh

ssh-keygen -t rsa -C “xxxxx@xxxxx.com”

2)、查看你的 public key

cat ~/.ssh/id_rsa.pub

(以ssh-rsa 开头,以账号的注册邮箱结尾的)

3)、将它添加到码云,添加地址 https://gitee.com/profile/sshkeys

posted @ 2022-11-27 20:27  苏子墨  阅读(129)  评论(0)    收藏  举报