36
14
I have a SOCKS5 proxy set up through PuTTY with port 7777 configured as a dynamic port. I can use firefox/filezilla/etc by configuring them to use a SOCKS proxy with localhost
and port 7777
. But I can't figure out how to ssh (through Cygwin) to a remote server by using the dynamic port. Is this possible?
I've tried using ProxyCommand
via the following method.
Create
~/.ssh/config
with the following line:ProxyCommand /usr/bin/nc -X connect -x 127.0.0.1:7777 %h %p
- Run ssh -p22 user@remotehost
The message I get is ssh_exchange_identification: Connection closed by remote host
1
To make a program whuch does not support SOCKS go through SOCKS, you can use a so-called proxifer; see http://en.wikipedia.org/wiki/Comparison_of_proxifiers . In particular, I recommand my open source tun2socks proxifer ( http://code.google.com/p/badvpn/wiki/tun2socks ).
– Ambroz Bizjak – 2012-07-26T15:34:16.093Thanks for the comment Ambroz. I need it to work in cygwin, and I see from the wikipedia page on proxifiers that all of the ones it mentions are either not implemented in cygwin or not applicable. Is there a way to get a proxifier to work in cygwin? – None – 2012-07-26T15:41:08.637
you don't need it to specifically support Cygwin. Cygwin programs are in the end just Windows programs, but with a POSIX interface implemented as a library. If a proxifier works on Windows, it should be able to proxify Cygwin programs just fine. – Ambroz Bizjak – 2012-07-26T16:50:09.567