Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Force using JSch instead of TortoisePlink on Windows ?
Force using JSch instead of TortoisePlink on Windows ? [message #976620] Thu, 08 November 2012 18:24 Go to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi all,

I've just jumped through some hoops getting Egit to work with ssh protocol against Eclipse Gerrit (which forces publickey authentication).

Turned out that Egit insisted on using TortoisePlink since I also had TortoiseGit and Msysgit installed - and the private keys that I had set up in Eclipse were not used at all. Details here:
http://wiki.eclipse.org/TM/Git_Workflows#Windows_Install

While using TortoisePlink and Pageant makes sense once it is configured, it's also somewhat unexpected and I'm wondering (a) why EGit inists on picking up TortoisePlink and (b) how I could force it to use the internal JSch ?

Thanks,
martin
Re: Force using JSch instead of TortoisePlink on Windows ? [message #976629 is a reply to message #976620] Thu, 08 November 2012 18:30 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
I should probably add that in my Msysgit Git Bash, I have this:

mober@SZG-MOBER-L3 ~
$ env | grep -i git
GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoisePlink.exe
PWD=/d/Workspaces/git
SVN_SSH=C:\Program Files\TortoiseGit\bin\TortoisePlink.exe
HOME=/d/Workspaces/git
!D:=D:\Workspaces\git
GNUPGHOME=/d/Workspaces/git/.gnupg
HISTFILE=/d/Workspaces/git/.bash_history


Which is already somewhat confusing since ssh-keygen and ssh use a different ssh than git so "git clone ssh:..." may fail while sanity checking ssh by itself may work.

I'm not sure whether that is a default setting or how I got to that setup ... maybe because I had set up TortoiseSVN + Putty + Pageant at some time in the past for Subversive / Subclipse (which also required jumping through hoops, even harder than the git ones at that time).
Re: Force using JSch instead of TortoisePlink on Windows ? [message #986134 is a reply to message #976629] Mon, 19 November 2012 06:50 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I think this behavior matches what [1] says about the effect of setting GIT_SSH.

[1] http://www.kernel.org/pub/software/scm/git/docs/index.html#_environment_variables
Previous Topic:pull from another remote/branch
Next Topic:Any way to launch a three-way merge with EGit?
Goto Forum:
  


Current Time: Thu Apr 25 14:57:53 GMT 2024

Powered by FUDForum. Page generated in 0.03084 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top