Tunneling ssh via a SOCKS5 Proxy on Windows
8,462
I have similar problem and I found this post: http://cms-sw.github.io/tutorial-proxy.html#infrastructure
While I could not find the version of netcat for windows that supports -x
option, I found the alternative program ncat.
So,
- Install ncat
-
Edit the config file for ssh, usually found at
%HOME%\.ssh\config
:Host hostToYourRepo ProxyCommand ncat --proxy hostToYourProxy:1080 %h %p
- Enjoy
PS. Options for ncat: https://nmap.org/book/ncat-man-options-summary.html
Related videos on Youtube
Author by
Vikas Raturi
Updated on September 18, 2022Comments
-
Vikas Raturi over 1 year
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-
Daniel B about 10 yearsRaise a complaint with the IT helpdesk. Blocking port 22 is completely unacceptable. Also, Tor isn't a SOCKS proxy.
-
Vikas Raturi about 10 yearsWell, i could solve the problem of ssh using Putty, by setting it a SOCKS Proxy on 127.0.0.1:9150.
-
Daniel B over 9 years@heavyd Just because it uses SOCKS to allow clients to connect doesn’t make it a SOCKS proxy. Tor is much more, which is not helping in this case.
-