无法添加用户Gitolite(centos) [英] Can not add user with Gitolite (centos)

查看:261
本文介绍了无法添加用户Gitolite(centos)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是gitolite的新手。我在远程服务器上安装gitolite(192.168.1.109)



所以我可以用git-cloning gitolite-admin.git。

  git clone ssh://git@192.168.1.109/gitolite-admin.git 

想要使用gitolite添加用户和回购。

  ssh-keygen -t rsa -Ctest-f test 

keydir / test.pub

然后, git add / git commit / git push 做得很好,GitServer为git push提供的echo msg是:

 合计5 (delta 0),重用0(delta 0)
remote:keydir / test.pub:权限被拒绝
remote:致命:fingerprinting失败'keydir / test.pub'
到ssh: //git@192.168.1.109/gitolite-admin.git
5b8c75d..8c12dac master - > master

我的远程服务器是CentOS。

 remote:keydir / test.pub:权限被拒绝
remote:FATAL:'keydir / test.pub'的指纹识别失败

您将如何避免该错误讯息?

解决方案

如果你已经生成了一个 test.pub 键,你应该在你的gitolite.conf中使用一个 test 用户。



请再试一次,如我所说:




ssh-keygen -t rsa -f$ {H} /。ssh / test-CGitolite Admin access(not interactive) q -P


这篇博客文章


在gitolite代码中挖掘出这个错误,当正则表达式找不到在运行 ssh-keygen -l -f'path / to / key.pub'后查看有效的指纹。 (请参阅 man ssh-keygen <



要解决此问题,请在将本地配置更改推送到gitolite服务器之前,先在本地运行该命令并让它生成有效的指纹。我发现我的问题是我没有在密钥中包含' ssh-rsa '前缀。



I am newby with gitolite. I've install gitolite on a remote server(192.168.1.109)

So I could git-cloning gitolite-admin.git.

git clone ssh://git@192.168.1.109/gitolite-admin.git

wanted to add user and repo using gitolite. following is ordinary add user process.

ssh-keygen -t rsa -C "test" -f test

added the public key in keydir/test.pub

and then, git add / git commit / git push is done well, GitServer echo msg for git push is:

Total 5 (delta 0), reused 0 (delta 0)
remote: keydir/test.pub: Permission denied
remote: FATAL: fingerprinting failed for 'keydir/test.pub'
To ssh://git@192.168.1.109/gitolite-admin.git
5b8c75d..8c12dac  master -> master

My remote server is CentOS.

remote: keydir/test.pub: Permission denied
remote: FATAL: fingerprinting failed for 'keydir/test.pub'

How would you avoid that error message?

解决方案

If you have generated a test.pub key, you should use a test user in your gitolite.conf.

Try again, as I mention in:

ssh-keygen -t rsa -f "${H}/.ssh/test" -C "Gitolite Admin access (not interactive)" -q -P ""

As illustrated in this blog post:

Digging about in the gitolite code reveals this error is thrown when a regex fails to find a valid looking fingerprint after running ssh-keygen -l -f 'path/to/key.pub'. (See man ssh-keygen for details).

To resolve the issue, run that command locally and have it generate a valid fingerprint before you push your configuration changes to the gitolite server. I found my issue was that I had failed to include the 'ssh-rsa ' prefix to the key.

这篇关于无法添加用户Gitolite(centos)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆