Watch 751 Star 1.1k Fork 331

开源中国 / Gitee FeedbackRuby

已添加ssh公钥,但是无法clone自己的代码仓库

任务
已验收
llcat  Created at

现象描述

发现无法clone自己的代码仓库后,我重新生成了ssh公钥并上传,
配置后还是无法clone,使用ssh -T git@gitee.com可以收到welcome信息,
对比从github上可以clone而言,看上去不是个人电脑的原因。

重现步骤

报错信息

YPL@YPLC MINGW64 ~/Desktop/studynotes/wx_web_study
$ ssh -T git@gitee.com
The authenticity of host 'gitee.com (116.211.167.14)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitee.com,116.211.167.14' (ECDSA) to the list of known hosts.
Welcome to Gitee.com, llcat!

YPL@YPLC MINGW64 ~/Desktop/studynotes/wx_web_study
$ ssh -T git@github.com
The authenticity of host 'github.com (52.74.223.119)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known hosts.
Hi llcat! You've successfully authenticated, but GitHub does not provide shell access.

YPL@YPLC MINGW64 ~/Desktop/studynotes/wx_web_study
$ git clone git@gitee.com:llcatty/WX_TP.git
Cloning into 'WX_TP'...
Command 'git upload-pack 'llcatty/WX_TP.git'' not Allowed !
exec request failed on channel 0
fatal: Could not read from remote repository.

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

YPL@YPLC MINGW64 ~/Desktop/studynotes/wx_web_study
$ git clone git@github.com:llcat/WX_TP.git
Cloning into 'WX_TP'...
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (44/44), done.
Reremote: Total 66 (delta 7), reused 63 (delta 7), pack-reused 0
Receiving objects: 100% (66/66), 45.87 KiB | 32.00 KiB/s, done.
Resolving deltas: 100% (7/7), done.
340906_lowkey2046 1034_ipvb total 3 participants

Comments (2)

340906_lowkey2046
李葵 2018-12-11 11:39 member

@Charlie 问题在这?

Command 'git upload-pack 'llcatty/WX_TP.git'' not Allowed !
1034_ipvb
李博文 2018-12-11 12:46 member

这个早已解决

Sign in and comment

Assignee
Labels
Not set
Project
Milestone
Branch
Scheduled start
Not set
Scheduled end
Not set
Top level
Priority

Help Search