Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problems using gerrit from a client behind proxy
Problems using gerrit from a client behind proxy [message #898390] Thu, 26 July 2012 10:16 Go to next message
Jayant Gupta is currently offline Jayant GuptaFriend
Messages: 10
Registered: March 2012
Junior Member
Hi all,

I am a contributor to etrice(Modelling) project. At my institute, I have a restricted internet access only through a proxy. I am facing some serious problems in pushing any new patch to Gerrit code review system through the proxy.

For carrying out the above task, I firstly tried to tunnel SSH over HTTP using corkscrew, following the instructions given at
. This is what i exactly did :

  1. Installed corkscrew
  2. Added ProxyCommand to ssh config
  3. Added proxy username and proxy authentication password to file ~/.ssh/proxyauth

After this, I was successful in setting up a ssh connecting to github and also push/pull changes to my github repo.
But I am unable to connect to gerrit through ssh. Here is the exact error :
$ssh -p 29418
Proxy could not open connnection to  Forbidden
ssh_exchange_identification: Connection closed by remote host

I am using Linux (RHEL 6.3 Beta x86_64) and git
The contents of my ~/.ssh/config are :
  Port 443
  ProxyCommand corkscrew 3128 %h %p ~/.ssh/proxyauth

Host *
  ProxyCommand corkscrew 3128 %h %p ~/.ssh/proxyauth

The verbose (error)result for ssh request to is available at

I tried deleting the contents of the known_hosts but this didn't help. What is the reason? Is this a problem at gerrit server?
Also, I have been unable to login to gerrit since long (after I changed my email address). But was still able to upload patches. Is this creating some problem?

I would be highly obliged if someone could help me in resolving this issue.

Thanking you in anticipation.


[Updated on: Thu, 26 July 2012 10:32]

Report message to a moderator

Re: Problems using gerrit from a client behind proxy [message #898864 is a reply to message #898390] Sat, 28 July 2012 11:56 Go to previous message
Jayant Gupta is currently offline Jayant GuptaFriend
Messages: 10
Registered: March 2012
Junior Member
I feel that the problem is due to non-supportive server configuration. This is what I found in a blog-post on web :

The basic idea is that you will somehow invoke socat(a utility similar to corkscrew), which will negotiate with the HTTP(S) proxy server using the CONNECT method to get you a clean pipe to the server on the far side.
Noting that many corporate firewalls block access to the CONNECT method on ports other than 443, the good folks at github have an ssh server listening on 443 if you use the host "", so you can replace the hostname and the port in the above ssh config stanza as appropriate, and you're all set

The above extract has been taken from :

What i feel is, since gerrit is being run on port 29418 and since proxies generally allow access to CONNECT method only for request on port 443 of remote host(server), so the ssh request for gerrit cannot to negotiated at the proxy.
This doesn't happen with github as it serves ssh requests on port 443 and the client utilities (like corkscrew) could negotiate proxies by sending send request on port 443 of the remote server(as done in the snapshot of .ssh/config above).

By the way, am I on the correct forum to ask this question?
Previous Topic:Groovy invisible in Eclips juno
Next Topic:Need help with .jar and .dll
Goto Forum:

Current Time: Sun May 16 19:26:14 GMT 2021

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

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

Back to the top