9

I set up a GIT Server in our internal network. I can push to it using git://...../ and with the option --enable=receive-pack on the server.

But when I try to push via ssh using EGIT Eclipse plugin(ssh://username@ip_adress:22/project.git) I get the following error:

Transport Error Cannot get remote repository refs.

Reason: Exception caught during execution of ls-remote command.

What might cause this and how do I solve it?

8
  • What version of Eclipse and of EGit are you using. what is your platform (Windows? Linux), and what is its version?
    – VonC
    May 14, 2012 at 9:37
  • I am using Windows 7 32bit, sp1. Eclipse Indigo Service Release 2 (EE IDE). Egit 1.3.0.210202151440-r
    – Beig
    May 14, 2012 at 9:43
  • Please try with a newer version of EGit from the nightly update site: download.eclipse.org/egit/updates-nightly
    – robinst
    May 14, 2012 at 10:28
  • egit ve4rsion 2.0.0 - same error
    – Beig
    May 14, 2012 at 10:50
  • Does you private SSH key has a password attached to it?
    – VonC
    May 14, 2012 at 11:07

2 Answers 2

3

git:// and ssh:// use different protocols (see EGit User_Guide#Git_URLs). So either use the former in EGit too or make sure ssh access works.

0

This problem's usually caused by problems in authentication which can happen if you're not authenticating as the git user, if you're using gitolite as the git user but using a key that's used for another account, or any other of a number of issues in authentication. You can fix this by generating a new keypair, posting the new public key, and authenticating using the new private key and the git user.

I posted more detailed instructions at git, gitolite error push (go there to avoid double posting/double editing.)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.