在Eclipse中使用putit的例子与egit [英] Using putty's pagent with egit in Eclipse

查看:228
本文介绍了在Eclipse中使用putit的例子与egit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过Eclipse'egit'模块访问一个私有的远程SSH git仓库。我在Windows上运行Eclipse。 Eclipse似乎没有自动使用putty的代理进行授权转发,我找不到任何关于自定义egit使用的SSH的文档(例如,使用plink.exe)。



我已经找到关于设置其他Windows git客户端使用putty / plink(例如,msysgit)的文档,但我似乎找不到任何关于Eclipse的egit和putty(或eclipse)的东西。



我确信ssh密钥正常工作,因为我一直用Putty登录服务器。



具体来说,我使用Git Repository Viewer,点击Clone Remote Repository,填写主机,存储库路径,协议(ssh)和用户。我点击下一步。我可以告诉它的连接,因为我得到一个弹出窗口与我的服务器的独特的横幅。然后我得到一个

 传输错误:无法列出可用的分支:原因:< URI> ;:验证失败

只有sshkey使用ssh登录,这就是为什么这不起作用(但至少显示我已经获得基础知识)



任何人都有成功与egit +盛会?或者知道它是否不可行?



更新



似乎这不起作用,因为Eclipse有在内部使用纯粹的Java SSH(jsch)实现,并且Eclipse包含的实现不支持授权代理协议。



有些补丁可以支持平台ssh代理通过已经提出(感谢@Janning的链接)。请参阅此Eclipse 错误179924 。更新#24包含有关建议的补丁的令人鼓舞的注释:


我已经确认我可以访问 http://github.com/ ,并通过egit与putty的分页克隆
一些项目。




我不完全确定,但是似乎目前的挂起是纯Java unix域套接字库周围的一些许可问题,并升级了纯java的SSH实现Eclipse使用。



更新的错误(号码360663 )显示了所需版本的jsch已经致力于Eclipse(据我所知,应该是下一个版本的一部分 - 应该是2012年6月底)。

解决方案

阅读morellet.d的答案后,我可以很简单地为自己设置这个。



我添加了用户环境v令人愉快的GIT_SSH,并将其设置为C:\Program Files(x86)\PuTTY\plink.exe所以,您只需要将其设置到您的plink文件的任何地方,它将工作。



说明与PuTTY 0.62配合使用,最新的EGit和Eclipse Juno x64。


I'm trying to access a private remote SSH git repository via the Eclipse 'egit' module. I'm running Eclipse on Windows. Eclipse doesn't seem to automagically work with putty's pagent for authorization forwarding and I can't find any documentation about customizing the SSH used by egit (e.g., to use plink.exe).

I've found documentation on the web about setting up other Windows git clients to use putty/plink (e.g., for msysgit), but I can't seem to find anything about Eclipse's egit and putty (or eclipse).

I'm confident the ssh key works normally, as I use it all the time to log into the server with Putty.

Specifically, I use the Git Repository Viewer, click 'Clone Remote Repository', fill in the host, repository path, protocol (ssh), and user. I Click 'Next'. I can tell that its connecting because I get a pop-up with my server's unique banner. Then I get a

Transport Error: Cannot list the available branches: Reason: <URI>: Auth fail

The ssh login is by sshkey only, so that's why this doesn't work (but at least it shows I've got the basics down).

Anyone have success with egit+pageant? Or know if its just not possible?

Update

It seems that this doesn't work because Eclipse has a pure-Java SSH (jsch) implementation internally that it uses, and that implementation Eclipse contains does not (yet) support the authorization agent protocols.

Some patches to support platform ssh agents via the have been proposed (thanks to @Janning for the link). See this Eclipse bug 179924. Update #24 includes this encouraging note about the proposed patches:

I have confirmed that I can get accesses to http://github.com/ and clone some projects by egit with putty's pageant.

I'm not entirely sure, but it seems like the current hangups are some licensing issues around a pure-java unix-domain socket library, and upgrading the pure-java SSH implementation that Eclipse uses.

A more recent bug (number 360663) shows the required version of jsch has been committed to Eclipse (and as far as I can tell should be part of the next release -- should be end of June 2012).

解决方案

After reading morellet.d's answer, I was able to set this up for myself very simply.

I added the user environment variable GIT_SSH and set it to "C:\Program Files (x86)\PuTTY\plink.exe" So, you just need to set it to wherever your plink file is and it will work.

Instructions worked with PuTTY 0.62, the latest EGit and Eclipse Juno x64.

这篇关于在Eclipse中使用putit的例子与egit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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