我尝试按照本手册安装 git + gitolite - 使用服务器的根安装。我只是不明白新的 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 也应该是可安装和可配置的。
那么有人可以告诉我我误解了什么吗?
非常感谢。
编辑:
嗯...我使用客户端安装记录重新安装 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 除了有人可以帮助我:) 谢谢。