Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353561 - Egit won't ask for passphrase and fail with "Cannot list branches. Reason: … Passphrase for
Summary: Egit won't ask for passphrase and fail with "Cannot list branches. Reason: … ...
Status: RESOLVED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 07:18 EDT by Christian Campo CLA
Modified: 2014-02-05 08:12 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Campo CLA 2011-08-02 07:18:26 EDT
I am trying to clone a repo with ssh and egit fails. I needs a passphrase but didn't ask for one. I am using an egit from the hudson 1.8.2011. This problem does not exist in the Indigo version. There it correctly asks for a passphrase…..

So I cannot checkout any Git Repos with egit. I think the severity should be major but leave that up to you…. :-)
Comment 1 Christian Campo CLA 2011-08-02 07:47:38 EDT
It seems that Egit asks actually for the passphrase when I do Team -> synchronize
workspace. Just the clone command wouldn't…. (if that makes any sense)
Comment 2 nightych CLA 2011-11-20 12:08:09 EST
Same problem here, if I'm trying to push (Win 7, Indigo, EGit 1.1.0). It displays an error message instead of the password dialog box. The text of the error is exactly the same as if the dialog would appear, therefore I guess EGit mistakes the response from the server as an error.
Comment 3 nightych CLA 2011-11-21 05:36:32 EST
Workaround: Open Git Repository Exploring View, select your repository, rightclick on Remote -> Create Remote. When you create your remote repository, it will show the passphrase dialog as expected.
Comment 4 Matthias Sohn CLA 2011-11-25 18:50:34 EST
Please retry with a current nightly build version. 
I just tried (version from 2011-11-25) and it works as expected.
Comment 5 Konrad Windszus CLA 2014-02-05 08:12:19 EST
This is still a problem with eGit 3.0.3 in Kepler SR1. I am asked for a passphrase when issuing "Push" via Right-Click on the Remote within the Git Repositories View. It does not work though when Push is triggered from the Project Explorer View Team->Remote->Push...

It just outputs the following error message in a modal dialog (which is not logged in the Error Log unfortunately): 

ssh://git@<some git URL>: org.eclipse.jgit.transport.CredentialItem$StringType:Passphrase for /Users/<username>/.ssh/id_rsa
ssh://git@source.int.netcentric.biz:7999: org.eclipse.jgit.transport.CredentialItem$StringType:Passphrase for /Users/<username>/.ssh/id_rsa

It works fine, once the passphrase was once entered, but in my regard the dialog asking for the passphrase should also be triggered from the Project Explorer View.