Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with git push remote behind proxy
    primarykey
    data
    text
    <p>To set the context, I am trying to use the <a href="https://github.com/cloudhead/toto" rel="nofollow">toto</a> to set up my blog.<br> I did </p> <p><code>$ sudo gem install toto</code> </p> <p>and the gems were installed properly.</p> <pre><code>Successfully installed rdiscount-1.6.8 Successfully installed toto-0.4.9 2 gems installed </code></pre> <p>After that, I tried</p> <pre><code>$ git clone git://github.com/cloudhead/dorothy.git myblog </code></pre> <p>but I get the following error</p> <pre><code>Cloning into myblog... github.com[0: 207.97.227.239]: errno=Connection timed out fatal: unable to connect a socket (Connection timed out) </code></pre> <p>My git http proxy settings are correct</p> <pre><code>jatin@jatin-ubuntu:~/myblog$ git config --global http.proxy http://proxy:port </code></pre> <p>My http_proxy settings are also correct</p> <pre><code>jatin@jatin-ubuntu:~$ echo $http_proxy http://proxy:port/ </code></pre> <p>So, I replaced git by http, as</p> <pre><code>$ git clone http://github.com/cloudhead/dorothy.git myblog </code></pre> <p>and it worked. </p> <p>Now, when I do the following</p> <pre><code>$ cd myblog $ heroku create myblog </code></pre> <p>it works till here and I get</p> <pre><code>Creating myblog...... done Created http://myblog.heroku.com/ | git@heroku.com:myblog.git Git remote heroku added </code></pre> <p>But it fails down here:</p> <pre><code>$ git push heroku master </code></pre> <p>and the following error comes up</p> <pre><code>ssh: connect to host heroku.com port 22: Connection timed out fatal: The remote end hung up unexpectedly </code></pre> <p>I didn't know what to do, so after Googling a bit I found that you can't push changes to github using http.<br> On digging in further, I found this link </p> <p><a href="http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/" rel="nofollow">how-to-use-the-git-protocol-through-a-http-connect-proxy</a> </p> <p>which says that you can have your firewall administrator configure the proxy to also allow CONNECT for port 9418, which is the port used by git.</p> <p>Once they have appropriately configured the proxy, you should then be able to use tools like netcat-openbsd or socat to connect through.</p> <p>My problem is that I am a student and I can't get around this because I can't reach out to the administrator. I don't know what to do, as I am still stuck looking for an answer.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload