in reply to Re: Using SSH via SOCKS5 Proxy
in thread Using SSH via SOCKS5 Proxy (Solution Posted)

Salva-

Yes, thanks for the leg-up! This is along the lines I'm thinking of following.

I'm actually hoping to modify Net::SSH::Perl to optionally utilize Net::SOCKS, when requested. If I can get this working, I'll provide my patches to the author for consideration in making it official.

-Craig

Replies are listed 'Best First'.
Re^3: Using SSH via SOCKS5 Proxy
by salva (Canon) on Sep 11, 2007 at 19:53 UTC
    OpenSSH accepts a ProxyCommand option to define how to connect using custom proxies. It would be great if you used the same aproach for Net::SSH::Perl
      Conveniently, the "connect.c" program everybody seems to mention here no longer exists. The tubes are littered with dead links to it. Dante "socksify" no longer works, either. Newer versions of libc or the Linux kernel did something that makes it so that calls to connect() et al. are linked to the real versions from libc, and not Dante's versions. That leaves no way to use anything other than a Web browser over SOCKS.
        Not too long ago I was able to successfully use tsocks. See also the list of similar programs maintained by Debian for other alternatives.

        Anyway, nowadays I would forget about Net::SSH::Perl and instead, use Net::OpenSSH that can use and external program (i.e. socat) to establish the connection to the remote server... though, it does not work on Windows.