5

I am trying to synchronise my eclipse java project with my private git repository using EGit plug-in but I'm being unsuccessful. I have configured the remote origin as:

URI: git@github.com:username/project.git

Host: github.com

Repository path: username/project.git

Unfortunately, when I try to fetch, I get this error:

git@github.com:Maslor/wfmgr.git: ProxyHTTP: java.io.IOException: proxy error: >Forbidden git@github.com:Maslor/wfmgr.git: ProxyHTTP: java.io.IOException: proxy error: >Forbidden git@github.com:Maslor/wfmgr.git: ProxyHTTP: java.io.IOException: proxy error: >Forbidden

I am using a proxy, does that mean I have to configure EGit's proxy settings, if there are any? How can I do that?

Maslor
  • 1,821
  • 3
  • 20
  • 44

2 Answers2

6

There is a pending issue: bug 349702 EGit tries to use HTTP proxy for SSH connect.

If you don't need the proxy when connecting to ssh, try and remove said proxy.
Or use a proxy bypass, as illustrated in this bug report.

https://issues.jboss.org/secure/attachment/12362176/12362176_bypass-proxy.png

If not, try an https url (provided you have a username/password associated to the remote repo server)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Should I use the exemplified host (`stgas71-domodossola.stg.rhcloud.com`) or should I use my network's proxy host? @VonC – Maslor Aug 07 '15 at 12:28
  • @Maslor your own host (to be bypassed). The picture is just an illustration. – VonC Aug 07 '15 at 12:29
0

You can try ssh git@github.com to first see if it is a problem with your IDE or also global to your system.

I then suggest you to follow this : SSH in git behind proxy on windows 7

Community
  • 1
  • 1
edi9999
  • 19,701
  • 13
  • 88
  • 127
  • I did try that but it wouldn't work, though I will try it again as you are recommending. My main issue with that method is that it usually implies that I have my git password exported, revealing it in a text file. – Maslor Aug 03 '15 at 09:55
  • I don't see where your github password should be exported ? Does `ssh git@github.com` work ? – edi9999 Aug 03 '15 at 09:59