1、报错信息
$ git clone git@gitee.com:你的用户名/项目名.git
Cloning into '项目名'...
git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2、原因

这个错误表示Git无法通过SSH公钥认证,通常是因为本地计算机的SSH公钥没有添加到远程仓库托管平台(如Gitee、GitHub)上。

3、解决办法

关于设置SSH公钥的详情步骤可以见我的另一篇文章:

https://blog.csdn.net/m0_64284147/article/details/139159980

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐