Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312843 - SSH2 passphrase protected key do not work with EGIT
Summary: SSH2 passphrase protected key do not work with EGIT
Status: RESOLVED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Matthias Sohn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-13 17:27 EDT by Adalbert Homa CLA
Modified: 2010-09-07 03:43 EDT (History)
2 users (show)

See Also:


Attachments
Testing git/ssh in a cygwin terminal (77.03 KB, image/jpeg)
2010-05-27 22:44 EDT, Adalbert Homa CLA
no flags Details
Screenshot of the ssh2 setup in Eclipse (71.28 KB, image/jpeg)
2010-05-27 22:45 EDT, Adalbert Homa CLA
no flags Details
Trying to clone repository from Eclipse (54.79 KB, image/jpeg)
2010-05-27 22:45 EDT, Adalbert Homa CLA
no flags Details
Eclipse ask for pass-phrase the first time (167.64 KB, image/jpeg)
2010-05-27 22:46 EDT, Adalbert Homa CLA
no flags Details
Eclipse ask for pass-phrase the second time (167.98 KB, image/jpeg)
2010-05-27 22:46 EDT, Adalbert Homa CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.