Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370657 - EGit not correctly passing private key file to plink.exe/TortoisePlink.exe
Summary: EGit not correctly passing private key file to plink.exe/TortoisePlink.exe
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-05 10:10 EST by Owain Jones CLA
Modified: 2016-02-05 09:53 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Owain Jones CLA 2012-02-05 10:10:33 EST
Build Identifier: 20110916-0149

I have a fairly complicated setup on this Windows machine, so that probably doesn't help: I have msysgit and TortoiseSVN installed, along with vanilla versions of putty/plink.exe and the openSSH binaries.

When I installed Egit, my GIT_SSH variable was already pointing to TortoisePlink.exe, so I assume it had been configured when I installed TortoiseSVN.

Running plink -i <my SSH key> git@wherever.com from commandline works, so I believe it's a bug with EGit. I've configured my Eclipse to look for "id_rsa" and "id_rsa.ppk" (the PuTTy format of the private-key file) within the right directory (my user/.ssh folder) but when performing a push from Egit, it doesn't seem to correctly pass these files to plink, so pushing to e.g. github fails with the message
"No supported authentication methods available"

As a workaround, I've written a 'wrapper' batch file which runs plink.exe with the correct private key:
----
@ECHO OFF
C:\plink.exe -i C:\Users\me\.ssh\id_rsa.ppk %*
----
And set my GIT_SSH to point to that batch file. This works fine - I can now push/pull to my github repo when I use the wrapper file. But obviously that's messy and ignores Eclipse's SSH configuration. 

Reproducible: Always

Steps to Reproduce:
1. Install TortoiseSVN or normal PuTTy package if not already installed
2. Install EGit straight from the Eclipse Marketplace (currently at version 1.2.0.201112221803-r)
3. Generate id_rsa/id_dsa keys for use with PuTTy - different format to the ones Eclipse generates, using puttygen.exe
4. Configure local git repo within Eclipse, attempt to push remote to GitHub repo
5. Before "push ref specifications" dialogue appears, error should pop up (from plink itself) with the message "No supported authentication methods available (server sent: publickey)"