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

Create a new class derived from Net::SSH::Perl and redefine the _connect method to do whatever you want. For instance, implementing the SOCKS5 protocol yourself (it's a very simple one) or using an external SOCKS5 adapter connected by a pipe or a unix socket.

Replies are listed 'Best First'.
Re^2: Using SSH via SOCKS5 Proxy
by cmv (Chaplain) on Sep 11, 2007 at 19:31 UTC
    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

      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.