Home » Archived » Buckminster » How to I specify an ssh key passphrase when using headless Buckminster?
How to I specify an ssh key passphrase when using headless Buckminster? [message #756211] |
Fri, 11 November 2011 08:58  |
Eclipse User |
|
|
|
When I materialize a certain CQuery into a new empty workspace, it needs to clone a remote git repository (the RMap tells it this). The remote repository is managed by gitolite, which uses keypair authentiaction (just like github).
My SSH private key has a passphrase.
When I perform the materialize using Buckminster within the Eclipse IDE, it pops up a dialog box asking me for my passphrase for my private key. I enter it, and the materialize proceeds successfully.
However, if I perform the materialize using headless Buckminster, i am never prompted for my passphrase for my private key. The materialize simply fails with:
ERROR [0001] : org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command
If I remove the passphrase from my private key, the materialize using headless Buckminster is successful.
Is there a way that I can materialize using headless Buckminster, while keeping the passphrase on my private key? I tried using ssh-add (to add the passphrase to the agent), but that did not help.
This is Linux with the latest Buckminster and everything,
Thanks
Matthew
|
|
|
Re: How to I specify an ssh key passphrase when using headless Buckminster? [message #756214 is a reply to message #756211] |
Fri, 11 November 2011 09:10   |
Eclipse User |
|
|
|
Hi Matthew,
There's no way to specify a passphrase when running headless. Then again, why would you want that? You're running
headless to avoid interaction so any passphrase would need to be stored in a file. The reason you have a passphrase in
the first place is to protect your private key from being compromised. Seems to me like storing a passphrase in a file
would render that protection useless.
I would recommend that you have a special purpose private key that you use for builds only and it should be without a
passphrase. We have no plans to provide support for entering passphrases in a headless Buckminster.
HTH,
Thomas Hallgren
On 2011-11-11 14:58, Matthew Webber wrote:
> When I materialize a certain CQuery into a new empty workspace, it needs to clone a remote git repository (the RMap
> tells it this). The remote repository is managed by gitolite, which uses keypair authentiaction (just like github).
>
> My SSH private key has a passphrase.
>
> When I perform the materialize using Buckminster within the Eclipse IDE, it pops up a dialog box asking me for my
> passphrase for my private key. I enter it, and the materialize proceeds successfully.
>
> However, if I perform the materialize using headless Buckminster, i am never prompted for my passphrase for my private
> key. The materialize simply fails with:
> ERROR [0001] : org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command
>
> If I remove the passphrase from my private key, the materialize using headless Buckminster is successful.
>
> Is there a way that I can materialize using headless Buckminster, while keeping the passphrase on my private key? I
> tried using ssh-add (to add the passphrase to the agent), but that did not help.
>
> This is Linux with the latest Buckminster and everything,
>
> Thanks
> Matthew
>
|
|
| |
Re: How to I specify an ssh key passphrase when using headless Buckminster? [message #756313 is a reply to message #756219] |
Fri, 11 November 2011 17:04   |
Eclipse User |
|
|
|
On 11/11/11 3:33 PM, Matthew Webber wrote:
> OK, understood.
>
> The reason I was interested in passphrase support is that we would like
> developers to be able to check out a fresh workspace using the command
> line. So when I said "headless" I was not just thinking of an unattended
> build server, but also a user at a command line.
>
> For new developers, I have a python script which downloads a zipped
> template workspace, unzips it, and calls headless buckminster to
> materialize a component. It's all very nice - the user can specify an
> short name for which of our products (and which version) they want, and
> the tools determines the correct CQuery and component name, and does it
> all.
>
> It works, unless the SSH key has a passphrase ...!
>
Have you looked at using something like ssh-agent
(http://en.wikipedia.org/wiki/Ssh-agent) - some useful tips at
http://help.github.com/ssh-key-passphrases/ and gory details here
http://www.unixwiz.net/techtips/ssh-agent-forwarding.html
In theory, this enables someone to give the passphrase to the agent so
subsequent usage does not require it.
I have no idea if a technique like that can be used in this case, but
perhaps worth looking into. BTW, on Mac, the ssh-agent is nicely
integrated with OSx.
- henrik
|
|
| | | | | | | | | |
Goto Forum:
Current Time: Mon Jul 14 02:25:13 EDT 2025
Powered by FUDForum. Page generated in 0.36242 seconds
|