Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] [Bug] Passphrases not cached in Oxygen

On Sun, Dec 31, 2017 at 1:29 AM, Randall S. Becker <rsbecker@xxxxxxxxxxxxx> wrote:
Hi EGit Devs,

I've been trying to figure out why in 4.9.2 (with Eclipse Oxygen), SSH
passphrases are no longer cached. I opened a case
https://bugs.eclipse.org/bugs/show_bug.cgi?id=529173 on this, but would like
to follow up to see whether I can debug the situation. I have a .ssh/config
in play with mixed-case hosts names. Any pointers on which class/method to
break on would help.

JschConfigSessionFactory.getSession() creates the ssh session. It seems when
the host entry in ~/.ssh/config configures the IdentityFile the JSch session is cached
and reused, otherwise a new one seems to be created for each remote call over ssh.
I don't know yet why.

com.jcraft.jsch.UserAuthPublicKey.start() initiates prompting for the passphrase in line 121

which is implemented by org.eclipse.jgit.transport.CredentialsProviderUserInfo

The passphrase dialog is implemented in EGitCredentialsProvider.get().

-Matthias

Back to the top