|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: SSH2 with SOCKS5 proxyby salva (Monsignor) |
| on Jul 13, 2012 at 06:30 UTC ( #981565=note: print w/ replies, xml ) | Need Help?? |
|
You can pass an open socket to Net::SSH2 connect instead of the host/port pair. So you can create the socket, connect to the proxy and do the SOCKS5 handshake yourself and then call $ssh->connect($socket). If you are on Linux/Unix you could even use an external program as socat to do the handshaking for you.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||