【发布时间】:2013-11-26 13:02:20
【问题描述】:
我已经尝试过我在这里找到的:
我已经生成了我的 ssh 密钥:
ssh-keygen -t rsa -f gitolite
然后我将它们复制到 gitolite 服务器
scp gitolite.pub git@my-server.com:gitolite.pub
之后我在我的服务器上设置 gitolite,没有明显错误
gitolite setup -pk gitolite.pub
我的 .gitolite/keydir/ 中唯一的键是 gitolite.pub。 .ssh/authorized_keys 中列出的唯一一个是我的 gitolite.pub。
在我的客户端,我设置了一个 ssh 配置文件
host gitolite
user git
hostname my-server.com
identityfile ~/.ssh/gitolite
然后我运行
git clone gitolite:gitolite-admin.git
这给了我:
Cloning into 'gitolite-admin'...
FATAL: R any gitolite-admin gitolite DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.
Please make sure you have the correct access right and the repository exists.
接下来我应该怎么做才能解决这个问题?
编辑:
如果它有帮助,我可以通过这种方式克隆 testing.git。
【问题讨论】: