Gitolite只会在注册了SSH的中央服务器上提示输入密码 [英] Gitolite prompts for password only on central server with SSH registered

查看:229
本文介绍了Gitolite只会在注册了SSH的中央服务器上提示输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行gitlab,它在中央资源库Ubuntu机器上使用gitolite,并且有几个用户在通过Gitlab的Web界面添加公共SSH密钥后连接到本机。他们自己的机器上的不同用户可以成功地从中央存储库机器中成功推送和拉出。在机器本身,我不能让我的用户推或拉到中央存储库。它总是要求git的密码!如何解决这个问题?



在注册了SSH密钥的远程计算机上,我得到:

  myusername @ ubuntu:〜$ ssh -T git@111.222.333.444 
hello my_username_gmail_com_1348772800,这是在git上运行的gitolite v2.2-11-g8c4d1aa-dt 1.7.0.4
gitolite config为您提供以下访问:
RW repo1
RW repo2
@R_ @W_ testing
RW repo3
$ b $ p

它只在服务器本身上失败,即使我注册了SSH密钥,也总会提示输入密码:

  serverusername @ server:〜$ ssh -T git@111.222.333.444 
git@111.222.333.444的密码:

以下是ssh -Tvvv调试打印的输出: http://pastebin.com/zrNzvzRE

解决方案

我很欣赏VonC帮助我的尝试。但是修复只是重新启动机器并添加了几个新的重新生成的密钥。我很积极地看到,在最初的几次中我正确地复制了它们,但最终几次重新生成了密钥。既然它起作用,我把它叫做完成。我明白这不是一个非常令人满意的答案......

I am running gitlab which uses gitolite on a central repository Ubuntu machine and have several users that connect to this machine after adding their public SSH keys via Gitlab's web interface. The different users on their own machines can successfully push and pull from the central repository machine just fine. On the machine itself, I cannot have my user push or pull to the central repository. It always asks for git's password! How can I fix this?

On a remote machine with SSH key registered I get:

myusername@ubuntu:~$ ssh -T git@111.222.333.444
hello my_username_gmail_com_1348772800, this is gitolite v2.2-11-g8c4d1aa-dt running on git 1.7.0.4
the gitolite config gives you the following access:
     R   W  repo1
     R   W  repo2
    @R_ @W_ testing
     R   W  repo3

It only fails on the server itself, where ( even though I registered the SSH Keys ) I am always prompted for a password:

serverusername@server:~$ ssh -T git@111.222.333.444
git@111.222.333.444's password: 

Here is the output of the ssh -Tvvv debug prints: http://pastebin.com/zrNzvzRE

解决方案

I appreciate VonC's attempt at helping me. However the fix was just to reboot the machine and add several new regenerated keys. I am positive that I copied them correctly the first few times but eventually recreating the key several times worked. Since it worked I called it done. I understand this isn't a very satisfying answer...

这篇关于Gitolite只会在注册了SSH的中央服务器上提示输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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