Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312843

Summary: SSH2 passphrase protected key do not work with EGIT
Product: [Technology] EGit Reporter: Adalbert Homa <adalbert.homa>
Component: CoreAssignee: Matthias Sohn <matthias.sohn>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: matthias.sohn, stefan.lay
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Testing git/ssh in a cygwin terminal
none
Screenshot of the ssh2 setup in Eclipse
none
Trying to clone repository from Eclipse
none
Eclipse ask for pass-phrase the first time
none
Eclipse ask for pass-phrase the second time none

Description Adalbert Homa CLA 2010-05-13 17:27:33 EDT
Eclipse 3.6 build I20100429-1549 with EGIT 0.8.201005130831
Passphrase protected SSH keys do not work. After entering the correct passphrase it ask again and again.

The key is working properly, tested with cygwin git 1.7.

SSH keys unprotected work just fine.
Comment 1 Matthias Sohn CLA 2010-05-26 20:01:50 EDT
Did you check if Eclipse points at the right .ssh directory ? At least on Windows Eclipse looks for SSH keys in ~/ssh by default, when correcting this to ~/.ssh where my ssh keys are this works for me.

Preferences > General > Network Connections > SSH2 > SSH2 home:
Comment 2 Adalbert Homa CLA 2010-05-27 22:42:49 EDT
That was the first thing I checked. If the directory is wrong then the keys will not be found and no passphrase will asked.

Take a look at the screenshots.
Comment 3 Adalbert Homa CLA 2010-05-27 22:44:34 EDT
Created attachment 170285 [details]
Testing git/ssh in a cygwin terminal

This shows that the setup works. A pass-phrase is asked and the repository is successfully cloned
Comment 4 Adalbert Homa CLA 2010-05-27 22:45:07 EDT
Created attachment 170286 [details]
Screenshot of the ssh2 setup in Eclipse
Comment 5 Adalbert Homa CLA 2010-05-27 22:45:38 EDT
Created attachment 170287 [details]
Trying to clone repository from Eclipse
Comment 6 Adalbert Homa CLA 2010-05-27 22:46:08 EDT
Created attachment 170288 [details]
Eclipse ask for pass-phrase the first time
Comment 7 Adalbert Homa CLA 2010-05-27 22:46:52 EDT
Created attachment 170289 [details]
Eclipse ask for pass-phrase the second time

This show cases the bug. Eclipse does not accept the pass-phrase, it ask again endlessly.
Comment 8 Matthias Sohn CLA 2010-08-31 15:03:05 EDT
Do you still face this problem with current 0.9 nightly version ?
Comment 9 Matthias Sohn CLA 2010-09-07 03:43:27 EDT
I use passphrase protected SSH keys from EGit every day successfully. If you have any new evidence on recent EGit version reopen this bug.