Network is unreachable for hg clone
<p>Autoproxy was installed on my firefox,and every web can be browsed via socket5 proxy service after buying vps service.  </p>

<pre><code>apt-get install mercurial  #on my local pc
hg clone https://vim.googlecode.com/hg/   /tmp/vim  #on my local pc
abort: error: Network is unreachable
</code></pre>

<p><a href="https://vim.googlecode.com/hg/" rel="nofollow">https://vim.googlecode.com/hg/</a> can be visited via autoproxy in Firefox.<br>
How to build some kind of proxy service on my remote VPS to make the <code>hg clone</code> command to reach <a href="https://vim.googlecode.com/hg/" rel="nofollow">https://vim.googlecode.com/hg/</a>?</p>

<p>Not all webs can be visited here, I have build a ladder to reach them via Firefox.</p>

<p>How to make another ladder on my VPS (on the remote PC) to make the <code>hg clone</code> command run on my local PC?</p>

<p>Every time I make the ladder with my VPS and Firefox this way:</p>

<ol>
<li><p>To input ssh command in my local pc</p>

<pre><code>ssh -D 127.0.0.1:1080  -p 1234 root@44.44.44.44
</code></pre></li>
<li><p>Click the Autoproxy plugin into Global mode. It was set in good status in Socket 5 proxy.</p></li>
<li><p>Now i can visit what I want to visit.</p></li>
</ol>

<p>How to write the <code>hg clone</code> command?</p>