无法添加用户Gitolite(centos) [英] Can not add user with Gitolite (centos)
问题描述
所以我可以用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:
- "gitolite setup getting FATAL: fingerprinting failed for '/tmp/Q3pnE4WVbu'"
- "Gitolite - remote: FATAL: fingerprinting failed for 'keydir/'"
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'
. (Seeman 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屋!