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

Bug 349348

Summary: Using Push... to eclipse.org server prompts for password 3 times
Product: [Technology] EGit Reporter: James Blackburn <jamesblackburn+eclipse>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: alex.blewitt, arno.b.dev, cdtdoug, dj.houghton, mathias.kinzler, matthias.sohn
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description James Blackburn CLA 2011-06-14 13:05:11 EDT
Eclipse EGit	1.0.0.201106081625-r	org.eclipse.egit.feature.group	Eclipse EGit
Eclipse JGit	1.0.0.201106081625-r	org.eclipse.jgit.feature.group	Eclipse JGit

It seems impossible to get the UI to save / remember the password.  The egit UI then prompts 3 times while trying to push through the UI.

I tried Configure Push from the repositories view and entered my password on the Destination Git Repository Page and ticked "Store in Secure Store", but this doesn't seem to work.

The result is that a fetch followed by a push prompts 4 times for a password :(
Comment 1 Matthias Sohn CLA 2011-06-29 08:08:13 EDT
Which protocol did you use here ? 

If you used ssh there are some patches underway

http://egit.eclipse.org/r/#change,3796

http://egit.eclipse.org/r/#change,3595 and http://egit.eclipse.org/r/#change,3594
Comment 2 Alex Blewitt CLA 2011-08-22 07:20:53 EDT
This affects all platforms, not just Linux. Can the platform field be updated to reflect this?

Secondly, it's a pretty major blocker to using EGit against SSH backed repositories that don't use public key encryption. I note the reviews listed here haven't been all completed - what is the current state of this bug? Will it be fixed for the EGit 1.1 release with Indigo SR1 next month?
Comment 3 arno.b CLA 2011-08-23 09:46:08 EDT
Same problem for me on Linux (Ubuntu 11.04) using ssh to push on sourceforge.
Comment 4 Matthias Sohn CLA 2011-10-09 18:11:47 EDT
I think the following change submitted on July 5 and included in EGit 1.1 should fix this : http://egit.eclipse.org/r/#change,3796

Could you retry with EGit 1.1 or a recent nightly build ?
Comment 5 Mathias Kinzler CLA 2012-03-21 06:50:32 EDT
I keep seeing the same with the latest EGit (1.3.0), in my case using the "Pull" command from the Git Command Group.

I have debugged some and ended up deep in JSch.

The com.jcraft.jsch.UserAuthPublicKey.start(Session) method calls java.io.IdentityFile.setPassPhrase(byte[]). There in line 398, the decrypt() method returns false which results in the setPassPhrase method to return false as well which in turn triggers the retries.

Unfortunately, this is not happening always...
Comment 6 Mathias Kinzler CLA 2012-03-21 06:53:03 EDT
What I also wanted to mention that I don't see the problem with the normal Fetch command.
Comment 7 Robin Rosenberg CLA 2012-04-09 10:19:27 EDT
*** Bug 352752 has been marked as a duplicate of this bug. ***