Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Egit and gitosis(How to use Egit with gitosis)
Egit and gitosis [message #520795] Mon, 15 March 2010 12:07 Go to next message
tomw is currently offline tomwFriend
Messages: 6
Registered: March 2010
Junior Member
Hi, I'm trying to use Egit with gitosis but I did not succeed so far.
The ssh-keys are correctly setup in the Preferences>Network place
Additionally the .ssh/config contains the host and the respective ssh key, but stil, it does not work.
Any idea, anyone?

Thanks
Re: Egit and gitosis [message #520943 is a reply to message #520795] Mon, 15 March 2010 21:24 Go to previous messageGo to next message
Ivan V is currently offline Ivan VFriend
Messages: 22
Registered: March 2010
Junior Member
Unfortunately I don't have an answer as I too have problems getting Egit to work with gitosis.

My problem is that when I try to push I get a dialog requiring a password for the git user. But the git user at the server hosting gitosis is configured without a password.

What is the error that you're getting?
Re: Egit and gitosis [message #520951 is a reply to message #520943] Mon, 15 March 2010 22:00 Go to previous messageGo to next message
tomw is currently offline tomwFriend
Messages: 6
Registered: March 2010
Junior Member
Exactly the same issue here. That's the point. It seems that the keys are either not properly recognized or the settings in the push dialog do not really fit.
For gitosis push I would expect something like
 git push git@myhost.com:myrepo

but I can't get to this format

update: of course, it needs to spell git(at)myhost.. but suprisingly the editor makes a dot from the @

[Updated on: Tue, 16 March 2010 09:29]

Report message to a moderator

Re: Egit and gitosis [message #520997 is a reply to message #520951] Tue, 16 March 2010 07:00 Go to previous messageGo to next message
Ivan V is currently offline Ivan VFriend
Messages: 22
Registered: March 2010
Junior Member
I found this post in Bugzilla and it doesn't look so good. In it, it is mentioned that gitosis doesn't speak git:// and is dependent on git daemon for anonymous access to repositories. I've been using gitosis without git daemon so it works without anonymous access. I know too little to understand why EGit can't work with non-anonymous access to gitosis repositories. I'm stuck Sad. Hope you have better luck. I'm thinking of pushing my rep to Gitorious or similar.
Re: Egit and gitosis [message #522554 is a reply to message #520795] Tue, 23 March 2010 05:15 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
What doesn't work in your case ? You can't what ?
Can you do the equivalent operation from native git ?
Re: Egit and gitosis [message #522555 is a reply to message #520951] Tue, 23 March 2010 05:18 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
No Real Name wrote on Mon, 15 March 2010 18:00
Exactly the same issue here. That's the point. It seems that the keys are either not properly recognized or the settings in the push dialog do not really fit.
For gitosis push I would expect something like
 git push git@myhost.com:myrepo

but I can't get to this format

update: of course, it needs to spell git(at)myhost.. but suprisingly the editor makes a dot from the @


Have a look at http://progit.org/book/ch4-7.html and check if your gitosis setup is ok. Can you push from native git ?
Re: Egit and gitosis [message #522607 is a reply to message #522554] Tue, 23 March 2010 10:56 Go to previous messageGo to next message
Ivan V is currently offline Ivan VFriend
Messages: 22
Registered: March 2010
Junior Member
Matthias Sohn wrote on Tue, 23 March 2010 06:15
What doesn't work in your case ? You can't what ?
Can you do the equivalent operation from native git ?


I got it working with gitosis. I had used the wrong ssh passphrase. Now that Egit remembers my passphrase I'm concerned about its safety. Where does Egit store the passphrase?
Re: Egit and gitosis [message #523425 is a reply to message #522555] Fri, 26 March 2010 12:48 Go to previous messageGo to next message
tomw is currently offline tomwFriend
Messages: 6
Registered: March 2010
Junior Member
sure, the native git environment works perfectly well with gitosis, so the setup is ok. The only point is that I can't push from Egit. Perhaps you can share what you have changed to make it work.

concerning the passphrase: the passphrase is only needed if you setup a passphrase during key generation.

[Updated on: Fri, 26 March 2010 12:50]

Report message to a moderator

Re: Egit and gitosis [message #523520 is a reply to message #523425] Fri, 26 March 2010 16:50 Go to previous messageGo to next message
Ivan V is currently offline Ivan VFriend
Messages: 22
Registered: March 2010
Junior Member
You wrote in an earlier message that you had the same issue as I. The cause may be the same or it may be different. In my case I did not change anything, except enter a non-obvious pass-phrase that was accepted. In fact the git user name is misleading.

The pass-phrase I entered was not the the empty password associated with the git user, but the pass-phrase associated with the private key for logging into my server user account (!) which does NOT have the username 'git', but something else. Why EGit would require that pass-phrase, I don't know. Since EGit does not ask me for the pass-phrase again until Eclipse is restarted it is stored somewhere. Hopefully it's in memory only, but I haven't seen any documentation regarding this.

As native git doesn't require this pass-phrase I'm wondering why EGit does.

[update:] It could be that I'm confused. I'm using the same public key for interacting with gitosis and for my user account on the same server. Mac OS X stores my pass-phrase in the Keychain and that could be the reason it's not requested when pushing with native git. However, I still would like to know how EGit stores the pass-phrase during the lifetime of the Eclipse session. Hope this may be of any help to others.

[Updated on: Tue, 30 March 2010 11:32]

Report message to a moderator

Re: Egit and gitosis [message #536756 is a reply to message #522607] Sun, 30 May 2010 18:11 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 71
Registered: March 2010
Location: Ottawa, ON, Canada
Member
Sorry that this reply is so late but I just saw your post. Eclipse does not directly look at the passphrase. That is all handled by the SSH client. On many Linux distros ssh-agent is started automatically and it is the component that saves the passphrase in memory so you don't have to enter it every time SSH needs it. The passphrase is never written to disk.
Re: Egit and gitosis [message #537029 is a reply to message #536756] Tue, 01 June 2010 05:47 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Jonathan Gossage wrote:

> Sorry that this reply is so late but I just saw your post. Eclipse does
> not directly look at the passphrase. That is all handled by the SSH
> client. On many Linux distros ssh-agent is started automatically and it is
> the component that saves the passphrase in memory so you don't have to
> enter it every time SSH needs it. The passphrase is never written to disk.

Seems the original question has been pruned from news, but the ssh agent
is not involved when Eclipse makes the SSH connection, as this
is handled by an all-Java implementation. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=179924 for a discussion on the
topic.

We (Egit) do try to parse more information from .ssh/config than JSch uses
by default. Using an SSH agent

-- robin
Re: Egit and gitosis [message #540097 is a reply to message #537029] Mon, 14 June 2010 21:34 Go to previous messageGo to next message
Patrick Renaud is currently offline Patrick RenaudFriend
Messages: 2
Registered: June 2010
Junior Member
I don't know if it's related in any way, but in my case I am able to clone and fetch from my repo in gitosis, but I am unable to push back to it.

Using EGit 0.8.5 from today's nightly-builds update site.
Re: Egit and gitosis [message #546804 is a reply to message #540097] Wed, 14 July 2010 09:31 Go to previous messageGo to next message
Bernhard Stader is currently offline Bernhard StaderFriend
Messages: 10
Registered: July 2009
Junior Member
egit 8.4 and gitosis is working for me.
using git+ssh.

Maybe it is a bug in the Nighly build?
Re: Egit and gitosis [message #578645 is a reply to message #522555] Fri, 26 March 2010 12:48 Go to previous messageGo to next message
tomw is currently offline tomwFriend
Messages: 6
Registered: March 2010
Junior Member
sure, the native git environment works perfectly well with gitosis, so the setup is ok. The only point is that I can't push from Egit. Perhaps you can share what you have changed to make it work.
Thanks.
Re: Egit and gitosis [message #578657 is a reply to message #578645] Fri, 26 March 2010 16:50 Go to previous messageGo to next message
Ivan V is currently offline Ivan VFriend
Messages: 22
Registered: March 2010
Junior Member
You wrote in an earlier message that you had the same issue as I. The cause may be the same or it may be different. In my case I did not change anything, except enter a non-obvious pass-phrase that was accepted. In fact the git user name is misleading.

The pass-phrase I entered was not the the empty password associated with the git user, but the pass-phrase associated with the private key for logging into my server user account (!) which does NOT have the username 'git', but something else. Why EGit would require that pass-phrase, I don't know. Since EGit does not ask me for the pass-phrase again until Eclipse is restarted it is stored somewhere. Hopefully it's in memory only, but I haven't seen any documentation regarding this.

As native git doesn't require this pass-phrase I'm wondering why EGit does.
Re: Egit and gitosis [message #580751 is a reply to message #522607] Sun, 30 May 2010 18:11 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 71
Registered: March 2010
Location: Ottawa, ON, Canada
Member
Sorry that this reply is so late but I just saw your post. Eclipse does not directly look at the passphrase. That is all handled by the SSH client. On many Linux distros ssh-agent is started automatically and it is the component that saves the passphrase in memory so you don't have to enter it every time SSH needs it. The passphrase is never written to disk.
Re: Egit and gitosis [message #580819 is a reply to message #580751] Tue, 01 June 2010 05:47 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Jonathan Gossage wrote:

> Sorry that this reply is so late but I just saw your post. Eclipse does
> not directly look at the passphrase. That is all handled by the SSH
> client. On many Linux distros ssh-agent is started automatically and it is
> the component that saves the passphrase in memory so you don't have to
> enter it every time SSH needs it. The passphrase is never written to disk.

Seems the original question has been pruned from news, but the ssh agent
is not involved when Eclipse makes the SSH connection, as this
is handled by an all-Java implementation. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=179924 for a discussion on the
topic.

We (Egit) do try to parse more information from .ssh/config than JSch uses
by default. Using an SSH agent

-- robin
Re: Egit and gitosis [message #581496 is a reply to message #537029] Mon, 14 June 2010 21:34 Go to previous messageGo to next message
Patrick Renaud is currently offline Patrick RenaudFriend
Messages: 2
Registered: June 2010
Junior Member
I don't know if it's related in any way, but in my case I am able to clone and fetch from my repo in gitosis, but I am unable to push back to it.

Using EGit 0.8.5 from today's nightly-builds update site.
Re: Egit and gitosis [message #582101 is a reply to message #581496] Wed, 14 July 2010 09:31 Go to previous message
Bernhard Stader is currently offline Bernhard StaderFriend
Messages: 10
Registered: July 2009
Junior Member
egit 8.4 and gitosis is working for me.
using git+ssh.

Maybe it is a bug in the Nighly build?
Previous Topic:[EGit] (How) can I get a git history of a folder?
Next Topic:Update site broken?
Goto Forum:
  


Current Time: Fri Mar 29 01:07:04 GMT 2024

Powered by FUDForum. Page generated in 0.03081 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top