尝试匿名克隆github存储库时,权限被拒绝 [英] Permission denied when trying to anonymously clone a github repository

查看:602
本文介绍了尝试匿名克隆github存储库时,权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为匿名用户(没有存储在github上的公钥),我尝试通过 git @ ... URL来克隆公共存储库。但它失败:

As an anonymous user (no public key stored at github) I try to clone a public repository through the git@... URL. But it fails:

$ git clone git@github.com:mikehaertl/phpwkhtmltopdf.git
Cloning into 'phpwkhtmltopdf'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

这是否意味着github不允许通过SSH协议进行匿名访问?如果是这样,这是记录在某处?

So does this mean, github does not allow anonymous access through the SSH protocol? If so, is this documented somewhere?

推荐答案

我刚发现github上还有另一个按钮,它说Git只读。它提供了一个类似但略有不同的URL:

I just found out that there's another button at github that says "Git Read-only". It gives a similar but slightly different URL that works:

git://github.com/mikehaertl/phpwkhtmltopdf.git

编辑:正如@damick指出的那样,按钮似乎已经消失了。但是您仍然可以手动更改原始网址以符合此处显示的模式。

As @damick pointed out below the button seems to be gone now. But you can still manually change the original URL to match the pattern shown here.

这篇关于尝试匿名克隆github存储库时,权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆