773 Star 1.5K Fork 351

开源中国 / Gitee Feedback

 / 详情

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

结束任务
Task
创建于  
2018-04-15 18:50

现象描述

发现无法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.

评论 (2)

llcat 创建了任务
llcat 更新了任务
诺墨 设置里程碑移动端APP
Yashin 负责人设置为likui
likui 添加协作者likui
likui 负责人likui 修改为江二十三

@江二十三 问题在这?

Command 'git upload-pack 'llcatty/WX_TP.git'' not Allowed !
江二十三 任务状态待办的 修改为已完成
诺墨 任务状态已完成 修改为已验收
诺墨 将工作项从 任务 迁移到 Task
诺墨 任务类型任务 修改为Task
诺墨 任务状态已验收 修改为结束任务

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
340906 nocnob 1645687775 1034 ipvb 1623743928
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback

搜索帮助

14c37bed 8189591 565d56ea 8189591