【发布时间】:2011-04-11 08:14:49
【问题描述】:
我尝试在this manual 之后安装 git + gitolite - 使用来自服务器的 root 安装。 我只是不明白新 gitolite 用户是否必须拥有他们的用户帐户?。当我将 tester.pub 密钥添加到 keydir 文件夹并配置对某个存储库的访问权限时,git 总是要求输入密码并且不允许我克隆任何内容
git clone tester@myserver.com:testrepo
Initialized empty Git repository in /home/testuser/git/testrepo/.git/
testuser@myserver.com's password:
Permission denied (publickey,password).
fatal: The remote end hung up unexpectedly
我认为创建系统帐户 (adduser testuser) 是不必要的,因为即使没有对服务器的 root 访问权限,gitolite 也应该是可安装和可配置的。
那么谁能告诉我我误解了什么?
非常感谢。
编辑:
嗯...我使用客户端安装 transcript 重新安装 gitolite。现在为我的 git 用户在服务器上成功添加和推送新的 pub 密钥更改 ~/.ssh/authorized_keys。所以它似乎比我第一次尝试更好。 但是我仍然无法从其他地方克隆任何存储库。 当我尝试使用 msysgit 为我的 windows PC 添加 pub key + edit config 时,然后尝试
$ git clone git@server.com:project.git
cloning into project...
Fatal ERROR: unable to authenticate
Fatal: the remote end hung up unexpectedly
另一方面,当尝试另一个 linux 时,它仍然要求输入密码。
# git clone git@server.com:project.git
Cloning into project...
git@server.com's password:
即使我为 git 用户提供密码:
fatal: 'project.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
这可能是系统帐号损坏造成的。
现在我真的不知道该怎么做 - 我应该在每个客户端上以某种方式创建 .ssh/config 以使其工作吗?
现在我开始有点恼火和不安,我可能会删除所有内容并尝试使用 mercurial:-D 除非有人可以帮助我:) 谢谢。
【问题讨论】:
标签: git ssh configure gitolite settings