Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Net::SFTP::Foreign via proxy

by salva (Canon)
on Nov 14, 2011 at 21:35 UTC ( [id://938033]=note: print w/replies, xml ) Need Help??


in reply to Net::SFTP::Foreign via proxy

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:

my $sftp = Net::SFTP::Foreign->new(..., more => [-o => 'ProxyCommand=. +..']);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://938033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found