Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't fetch from private repository with EGit

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: [email protected]:username/project.git

Host: github.com

Repository path: username/project.git

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

[email protected]:Maslor/wfmgr.git: ProxyHTTP: java.io.IOException: proxy error: >Forbidden [email protected]:Maslor/wfmgr.git: ProxyHTTP: java.io.IOException: proxy error: >Forbidden [email protected]: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?

like image 942
Maslor Avatar asked Jul 27 '15 15:07

Maslor


People also ask

How do I access a private Git repository?

Set up a GitHub SSH key. Add the public SSH key to a private repository's deploy keys. Store the private SSH key in Secret Manager. Submit a build that accesses the key from Secret Manager and uses it to access the private repository.

How do I pull a private repository from GitHub?

Changing a repository's visibilityOn GitHub.com, navigate to the main page of the repository. Under your repository name, click Settings. Under "Danger Zone", to the right of to "Change repository visibility", click Change visibility. Select a visibility.

How do I clone a private Git repository token?

Cloning from GitHub using HTTPS In GitHub, go to Settings --> Developer Settings --> Personal access tokens . Click Generate new token and assign the token a name. Grant the token privilege to the repo group. Copy the token to a secure location.


1 Answers

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)

like image 74
VonC Avatar answered Sep 30 '22 05:09

VonC