我已经尝试了我在这里找到的东西:
我用以下命令生成了我的ssh密钥:
ssh-keygen -t rsa -f gitolite然后我把它们复制到gitolite服务器上。
scp gitolite.pub git@my-server.com:gitolite.pub在那之后,我在我的服务器上设置了gitolite,没有明显的错误
gitolite setup -pk gitolite.pub我的.gitite/keydir/中唯一的密钥是gitolite.pub。.ssh/authorized_keys中列出的唯一密钥是my 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。
发布于 2013-11-26 13:02:21
我修复了这个问题,从我的服务器上完全删除了gitolite,并重新恢复了它。需要注意的是,当您生成密钥时,它们需要是您当前在客户端工作站上登录的用户名。
https://stackoverflow.com/questions/20208286
复制相似问题