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

Bug 347575

Summary: Cannot fetch or push changes via SSH
Product: [Technology] EGit Reporter: Dariusz Luksza <dariusz.luksza>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: carsten.pfeiffer, matthias.sohn
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Dariusz Luksza CLA 2011-05-29 07:15:10 EDT
I cannot fetch or push changes via ssh. After launching push/fetch action I got an error in 'Error log':

org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://dluksza@egit.eclipse.org:29418: Passphrase for /home/lock/.ssh/id_rsa
at org.eclipse.egit.ui.credentials.EGitCredentialsProvider.get(EGitCredentialsProvider.java:62)
at org.eclipse.jgit.transport.CredentialsProviderUserInfo.promptPassphrase(CredentialsProviderUserInfo.java:98)
at com.jcraft.jsch.UserAuthPublicKey.start(UserAuthPublicKey.java:120)
at com.jcraft.jsch.Session.connect(Session.java:419)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:128)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:125)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:128)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Dariusz Luksza CLA 2011-05-29 19:24:53 EDT
As far as I investigate this issue it appears after change #2725. Before this change I was always asked for a passphase for my private key, I never store it in eclipse and now I can't enter it because EGit doesn't ask about it.

[1] http://egit.eclipse.org/r/#change,2725
Comment 2 Dariusz Luksza CLA 2011-05-29 19:44:27 EDT
I've pushed change[1] that should fix this issue.

[1] http://egit.eclipse.org/r/3574
Comment 3 Matthias Sohn CLA 2011-06-02 18:25:53 EDT
merged as 7bf48410a1296afcaf1747019bdfc6322d053996