码云可以认证,但是不能拉取,请问是什么原因?

zb1500496561447 发布于 03/27 12:14
阅读 27
收藏 0

没置账号公钥前

```bash

ssh -T git@gitee.com
git@gitee.com: Permission denied (publickey).

```

设置账号公钥后

```bash

git -T git@gitee.com

 ssh -T git@gitee.com
Hi C! You've successfully authenticated, but GITEE.COM does not provide shell access.

```

 

拉取时. 按照我的理解,publickey 已经在账号上了,我应该有权限;链接也是直接从码云复制的,应该也不会错。然而就是拉取不了。

```bash

git clone git@gitee.com:xxx/yyy.git
Cloning into 'yyy'...
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

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

```

 

 

加载中
返回顶部
顶部