Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » gitolite, on egit failes, on bash works, frustration lvl rising(unable to get egit working with remote gitolite host due to problems with authentication, any help greatly appreciated!)
icon5.gif  gitolite, on egit failes, on bash works, frustration lvl rising [message #880586] Sat, 02 June 2012 11:04 Go to next message
Niklas someone is currently offline Niklas someoneFriend
Messages: 2
Registered: June 2012
Junior Member
Hi EGIT community,

after hours and hours of configuring egit with gitolite I decided to give this forum a try. Hopefully someone can give me a pointer to what I am doing wrong. or a logfile I haven't seen. or a command. or anything... Confused

I am trying to setup eclipse with a private remote git repository (first gitosis by now gitolite--no difference really) Simple test situation: one repository, one user with public key auth, git over ssh.

On the commandline
git@host.com:repo.git
-> works

In Eclipse/EGIT
ssh://git@host.com/repo.git
-> exception ls-remote command (details see below)
(same result for writing the config directly into .git/config and starting via egit)

Additionally from this point onwards my IP is blocked from accessing the server (enty in /etc/hosts.deny).

I took a look into the /var/log/auth.log on the remote host (see below). It appears eclipse is failing the authentication.

However the public key resides in .ssh/id_rsa-repo which is precisely the location I configured in the Window->Preferences --> General->Network Connection->SSH2 menu. Additionally I even disabled all other forms of authentication, but to no avail.

I am running out of ideas here. Anybody?


Details:
Eclipse: 3.7.2
EGIT version: 1.3.0.201202151440-r
GIT: 1.7.2.5
Gitolite: v3.03-14-g7170ad9

Exception:
"Exception caught during execution of ls-remote command"

Logfile ssh connection
Starting the session and administering the repository
Jun  2 12:18:04 HOST sshd[9556]: Server listening on 0.0.0.0 port 22.
Jun  2 12:18:04 HOST sshd[9556]: Server listening on :: port 22.
Jun  2 12:18:24 HOST sshd[9563]: Accepted publickey for git from MY-IP port 62586 ssh2
Jun  2 12:18:24 HOST sshd[9563]: pam_unix(sshd:session): session opened for user git by (uid=0)
Jun  2 12:18:25 HOST sshd[9565]: Received disconnect from MY-IP: 11: disconnected by user
Jun  2 12:18:25 HOST sshd[9563]: pam_unix(sshd:session): session closed for user git


accessing the repository from commandline
Jun  2 12:18:46 HOST sshd[9570]: Accepted publickey for git from MY-IP port 62587 ssh2
Jun  2 12:18:46 HOST sshd[9570]: pam_unix(sshd:session): session opened for user git by (uid=0)
Jun  2 12:18:47 HOST sshd[9572]: Received disconnect from MY-IP: 11: disconnected by user
Jun  2 12:18:47 HOST sshd[9570]: pam_unix(sshd:session): session closed for user git


Finally accessing the repository from git
Jun  2 12:19:23 HOST sshd[9582]: Failed password for git from MY-IP port 62588 ssh2
Jun  2 12:19:23 HOST last message repeated 4 times
Jun  2 12:19:24 HOST sshd[9584]: Failed password for git from MY-IP port 62589 ssh2
Jun  2 12:19:24 HOST last message repeated 4 times
Jun  2 12:19:25 HOST sshd[9586]: Failed password for git from MY-IP port 62590 ssh2
Jun  2 12:19:25 HOST last message repeated 4 times


A enty in /etc/hosts.deny follows immediately
Re: gitolite, on egit failes, on bash works, frustration lvl rising [message #882395 is a reply to message #880586] Wed, 06 June 2012 11:41 Go to previous messageGo to next message
Niklas someone is currently offline Niklas someoneFriend
Messages: 2
Registered: June 2012
Junior Member
Tried the same for github. Same exception.

I am now 99% sure eclipse messes with my keys. Yet the configuration is absolutely right (points to ~/.ssh and includes the right private key)

Is there no way to get more control on how eclipse handles this?
Re: gitolite, on egit failes, on bash works, frustration lvl rising [message #885334 is a reply to message #880586] Tue, 12 June 2012 20:38 Go to previous messageGo to next message
Adam B is currently offline Adam BFriend
Messages: 1
Registered: June 2012
Junior Member
Having the very same issue. Although I've found that public repos like "git://git.apache.org/cassandra.git" seem to work fine. Subscribing to this thread in case a solution is posted...
Re: gitolite, on egit failes, on bash works, frustration lvl rising [message #886711 is a reply to message #885334] Fri, 15 June 2012 14:05 Go to previous message
Matthew Webber is currently offline Matthew WebberFriend
Messages: 198
Registered: December 2010
Senior Member
I notice that the keypair you are using is called ~/.ssh/id_rsa-repo(.pub) rather than the default .ssh/id_rsa(.pub). How do you tell Eclipse to use the non-standard name?

Try telling ssh itself which key you use, by adding an entry like this in ~/.ssh/config (create the file if none exists)

Host github github.com www.github.com
    User git
    HostName github.com
    IdentityFile ~/.ssh/id_rsa-github



Actually, can you post the results of cloning from the command line - I gather that it's successful, but i would like to see exactly what command you entered. Post your ~/.ssh/config if you have one.
Previous Topic:nullpointerexception when trying to push to remote
Next Topic:bare repository
Goto Forum:
  


Current Time: Fri Apr 26 21:17:16 GMT 2024

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

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

Back to the top