Gitolite Eclipse'验证失败' [英] Gitolite Eclipse 'Auth fail'

查看:153
本文介绍了Gitolite Eclipse'验证失败'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让一台Gitolite服务器在CentOS机器上运行,但我似乎无法通过Windows笔记本电脑上的Eclipse访问它。

I am trying to get a Gitolite server going on a CentOS machine, but I can't seem to access it from an Eclipse on a Windows laptop.

我可以使用命令行git( git clone git@192.168.2.96:gitolite-admin )从本地帐户和远程计算机克隆管理资源库,但是当我尝试在Eclipse中执行它除了 Auth fail 消息外没有其他任何东西。

I can clone the admin repository from a local account and from the remote computer with command line git, (git clone git@192.168.2.96:gitolite-admin) but when I try to do it from Eclipse I get nothing but Auth fail messages.

密钥位于 C:\ Users \< username> \.ssh 和Eclipse的 SSH2 home 目录指向那里。

The key is in C:\Users\<username>\.ssh and Eclipse's SSH2 home directory is pointing there.

推荐答案

如果您的 Window> ;首选项>网络连接> SSH2 是否正确,请确保它与未定义的GIT_SSH环境变量(以下 bug 326526 ,正如我在 Egit拒绝接受id_rsa 中所述)。

If your "Window > Preferences > Network Connections > SSH2" are correct, make sure this isn't related to an undefined GIT_SSH environment variable (following bug 326526, as I mentioned in "Egit Refuses to accept id_rsa").

当然,请确保您使用的是EGit的最新版本(否则您可能仍然会面对像 bug 356233:如果ssh身份验证失败,EGit需要清除缓存的密码)。
请注意,如果您的私钥有密码,有一个挂起错误(352385)(或重复检查你确实输入了您的密码)。

Of course, make sure you are using the latest version of EGit (otherwise you may still face bugs like bug 356233: "EGit needs to clear cached passwords if ssh authentication fails").
Note that if your private key has a passphrase, there is a pending bug (352385) (or double check you did entered your password correctly).

这篇关于Gitolite Eclipse'验证失败'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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