2013-07-03 112 views
1

我刚刚在我的Debian服务器上安装了gitolite。 后来我克隆gitolite管理员回购和新的公共密钥+以下行的conf文件:Gitolite,无法克隆新回购

repo wallr_common 
RW+ = wall 

新的回购协议是推后创建。

首先我去authorized_keys,看到新用户的密钥不存在,然后我运行~/.gitolite/keydir$ gl-setup,并在密钥出现在authorized_keys。

现在我试图克隆,但我得到的错误:

git.exe clone --progress -v "ssh://[email protected]:/wallr_common.git" "D:\wallr_common" 

Cloning into 'D:\wallr_common'... 
fatal: Could not read from remote repository. 

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

git did not exit cleanly (exit code 128) (5834 ms @ 04.07.2013 0:27:46) 

是一个什么这个根本原因?

回答

1

您必须使用gitgitolite帐户为您的SSH会话。不是您在gitolite中注册的用户帐户wall

这意味着ssh://[email protected],而不是ssh://[email protected]

用您用来安装gitolite的帐户替换'git'。

查看更多的“How do programs like gitolite work?”。

这是一个与in this question类似的错误。

+0

使用您的版本时,我得到: R访问wallr_common DENIED git – ICE

+0

什么是* ssh git @ 192.168.1.110'的* full *输出? (再次假设您已经在一个名为“git”的账户中安装了gitolite和裸回购:如果不是这种情况,请告诉我您在服务器端使用了哪个账户)。 – VonC

+0

虽然试图从本地机器连接到服务器使用git用户和git.ppk(用于gitolite安装)我得到“服务器拒绝分配pty” – ICE