M BUZZ CRAZE NEWS
// general

Tunneling ssh via a SOCKS5 Proxy on Windows

By Gabriel Cooper

I'm using Windows 7 over my 'restricted' campus network.
I use Heroku Toolbelt to work with heroku projects, which inturn uses git and ssh on port 22.
However, port 22 is blocked in my campus. Can i use a SOCKS proxy like Tor to tunel my ssh and use it properly.
Thanks.
PS: I'm using Windows

5

4 Answers

I have similar problem and I found this post:

While I could not find the version of netcat for windows that supports -x option, I found the alternative program ncat.

So,

  1. Install ncat
  2. Edit the config file for ssh, usually found at %HOME%\.ssh\config:

    Host hostToYourRepo ProxyCommand ncat --proxy hostToYourProxy:1080 %h %p
  3. Enjoy

PS. Options for ncat:

For the strict use case of using Git, you can use http/https Git URIs. Git supports proxy settings including authentication.

I'm not sure if Heroku Toolbelt requires ssh though.

use ncat, but you should set the proxy type like the following:

ProxyCommand ncat --proxy-type socks5 --proxy 127.0.0.1:1080 %h %p
ProxyCommand "e:/sdk/git/mingw64/bin/connect.exe" -S 127.0.0.1:1080 %h %p

you can try connect.exe if you have git installed

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy