Buckminster doesn't seem to handle SSH keys with passphrases [message #730562] |
Wed, 28 September 2011 15:56 |
Matthew Webber Messages: 198 Registered: December 2010 |
Senior Member |
|
|
I'm using Buckminster to check out from a remote Git repository. Access is managed by gitolite, which means it uses my SSH keypair to authorise access.
I start off with a fresh workspace. If I have a passphrase (note: this is different from a password) on my SSH private key, then materialisation fails with:
Cloning remote repository ssh://dascgitolite@dasc-git-dev.<removed>/training/bmn54829/workflow.master.git into /scratch/training_ide_git/training/bmn54829/workflow.master.git
ERROR [0001] : org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command
Errors and Warnings
E [0001] : org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command: Exception caught during execution of fetch command
TAG-ID 0001 = Query for workflow.master.feature:eclipse.feature
Note that there is no prompt for my passphrase.
If I then remove the passphrase from my private key, and restart Eclipse, then my CQuery materialises just fine. So the problem is the presence of the passphrase.
Certainly EGit knows about key passphrases, because if I check out the remote Git repository from within Eclipse, but not using Buckminster, then I am promtped for my passphrase, after which the clone works fine.
Is there something that I need to do so that Buckminster asks for a passphrase when required, or should I raise a bugzilla? Has anyone been able to use Buckminster to check out from a resource using a SSH keypair with a passphrase? Surely this is a fairly comon scenario.
Note that I'm not talking about getting Eclipse to accept passphrases that have previously been supplied via ssh-agent and ssh-add - that's a separate problem. At this point, I'd be happy to just have Buckminster prompt me for passphrase when required.
This is using the latest everything, so Eclipse 3.7.1 and the latest Buckminster.
Matthew
|
|
|
Re: Buckminster doesn't seem to handle SSH keys with passphrases [message #730956 is a reply to message #730562] |
Thu, 29 September 2011 15:38 |
Matthew Webber Messages: 198 Registered: December 2010 |
Senior Member |
|
|
We managed to find a work-around, and a clue to the underlying problem, which I'll document here for the future.
As indicated, we are using Buckminster to clone a remote Git repository which requires an SSH keypair for authentication.
Originally, we found that if the private key file had a passphrase, the Buckminster materialize would fail. We have now discovered that if the "Git Repositories" view is open, the Buckminster materialize prompts for the passphrase and works fine. In fact, if you open the ""Git Repositories" view and then close it, the Buckminster materialize still prompts for the passphrase and works fine.
I guess that there is some initialization that EGit does, which doesn't happen until the view is opened. I'm not sure of this should be logged as a Buckminster error or an EGit error!
Matthew
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03769 seconds