Can't fetch from private repository with EGit - eclipse

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?

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.
If not, try an https url (provided you have a username/password associated to the remote repo server)

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

Related

Error in the checkout of a Github using Subversion with SSH - Linux Command line

Github recently enforced a no password rule with their repository access. I can't do two factor authentication, so, I am stuck with SSH keys. I want to use subversion, but when I try to checkout my repo, using:
svn co "svn+ssh://git#github.com/Oiubrab/ozzymandais.git"
I get the error:
Invalid command: 'git#github.com svnserve -t'
You appear to be using ssh to clone a git:// URL.
Make sure your core.gitProxy config option and the
GIT_PROXY_COMMAND environment variable are NOT set.
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://git#github.com/Oiubrab/ozzymandais.git'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
From the research I've done, I think I need to edit the /home/user/.subversion/config file, but i have no idea how and there is no documentation as to how to use svn with github with ssh. I have setup an ssh key and popped it on my github account. I just need to know how to setup the subversion tunnel to github.
I don't think that github supports the svnserve protocol.
AFAIK, you should generate a personal access token (PAT) in GitHub and use it as a password in the Subversion client. I.e., enter your PAT when the client prompts you for a password.

How do I push/pull from Github over openconnect vpn with github ssh auth?

I'm using openconnect in Ubuntu 16.04 LTS to ssh into a remote machine over a vpn. I'm trying to push and pull to/from Github with ssh authentication, but it's not working. When I try to pull or push, it gives the error:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
When I connect with nomachine, I'm able to push/pull with Github no problem.
I've tried googling many different things, and haven't noticed anything yet in the options for openconnect or ssh that would help.
Any ideas?
The answer was simple: just set the git url to use the https version instead of ssh. You can also then cache the username/pass for https for a while: https://help.github.com/articles/caching-your-github-password-in-git/

error: 403 Forbidden while accessing https://github.com/AlchemyAPI/alchemyapi_python.gi/info/refs

I am trying to use alchemy api for entity extraction
https://github.com/AlchemyAPI/alchemyapi_python
When i give this command to clone
git clone https://github.com/AlchemyAPI/alchemyapi_python.git
I get this error:
The requested URL returned error: 403 Forbidden while accessing https://github.com/AlchemyAPI/alchemyapi_python.gi/info/refs
fatal: HTTP request failed
Please let me know what should I do?
You can try and debug it with GIT_CURL_VERBOSE=1 before git clone.
You also can try cloning it with ssh:
git clone git#github.com:AlchemyAPI/alchemyapi_python
(Make sure your public ssh key is registered first and that ssh -Tv git#github.com works)
I just cloned it with the https url without any issue.
Download the code as zip file. There is option on bottom-right corner.

error while cloning a project in moovweb from commandline

I am new to moovweb. Using gitbash to login to moov server . After logging in I try to clone a project created successfully at moov web site from gitbash(as admin). I get the below error
$git clone moov#git.moovweb.com:bharath2k5/wikipedia.git
ssh:connect to host git.moovweb.com port 443: Bad file number
fatal:could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Also this is my .ssh/config.
Host git.moovweb.com
IdentityFile ~/.ssh/id_rsa
PreferredAuthentications publickey
Port 443
Thanks for your help.
It looks like your computer failed to connect to the moovweb git server (git.moovweb.com) so it didn't even get to the authentication step. I noticed you have a rule in your ssh config to use port 443 instead of 22. Does your network block port 22 access? It's possible that even with the configuration, git is still using port 22. You can check by running the following command:
Best way to check is to run the following command in git bash:
$ ssh -vv moov#git.moovweb.com
That should give you a lot of information, including which port ssh is trying to use.
Anyways, you can force git to use port 443 on a particular project by changing the URI used to clone the project. Try the following and see if it works:
$ git clone ssh://moov#git.moovweb.com:443/bharath2k5/wikipedia.git
If that works, it seems that the Port configuration in .ssh/config doesn't seem to apply to git operations.

Eclipse git saying Connection Refused

I am trying to clone a git repository in Eclipse stored at a server (connected to my system via LAN).
This is what I am filling in the Import Projects From Git dialog:
the repository is stored at: /home/sajat/git in the server.
However, when i click Next, I get the following error:
Can someone tell me what am I doing wrong?
2 problems I see:
you are likely using the wrong port number, standard SSH is 22 and unless you have ssh listening on port 80 it will not work.
Also, you path is odd, /git is not the same as /home/sajat/git. Try using the long path.
You should follow this how-to if you're having trouble with a Git server create by your own