XP is just a number | |
PerlMonks |
Re: Net::SFTP::Foreign via proxyby salva (Canon) |
on Nov 14, 2011 at 21:35 UTC ( [id://938033]=note: print w/replies, xml ) | Need Help?? |
Which kind of proxy?
For an HTTPS proxy you can use ProxyTunnel (you may also need to get the SSH server listening on port 443 as most HTTPS proxies forbid connections to port 22). For a SOCKS4/SOCKS5 proxy (unlikely) you can use socat. In any case, first find the particular ProxyCommand directive that allows OpenSSH to connect to the remote server through the proxy using any of these utilities. Then, pass it to Net::SFTP::Foreign on the constructor call as follows:
In Section
Seekers of Perl Wisdom
|
|