in reply to Re: Enhancing Net::SFTP (& Net::SSH) to support IPv6
in thread Enhancing Net::SFTP (& Net::SSH) to support IPv6

I use Net::SSH2 because it's the only SSH module I was able to get to work on Windows

Yes, I've long given up on the others.
Note that Net::SFTP::Foreign::Backend::Net_SSH2 installs trivially and works fine with Net::SSH2 on Windows - and, IMO, generally provides a more user-friendly interface.

With that module (and its prerequisite Net::SFTP::Foreign) installed, one can then pass a "Net::SSH2 object already connected to the remote host and authenticated" to the Net::SFTP::Foreign constructor - so I think that IPv6 would thereby also be enabled if one wished to use Net::SFTP::Foreign with the Net::SSH2 backend.

Update: I forgot to thank you for the code you posted ... thanks !!

Cheers,
Rob
  • Comment on Re^2: Enhancing Net::SFTP (& Net::SSH) to support IPv6

Replies are listed 'Best First'.
Re^3: Enhancing Net::SFTP (& Net::SSH) to support IPv6
by VinsWorldcom (Prior) on Jul 23, 2015 at 16:10 UTC

    Thanks - your notes on integration of Net::SFTP::Foreign::Backend::Net_SSH2 are useful - if I ever need SFTP functions. Lately, I've been looking to augment my Cisco scripts currently using Net::Telnet::Cisco with Net::SSH2 for the above reasons about Windows support. I was trying to find some integration so the API would be similar to Net::Telnet(::Cisco) - something like Net::SSH2::Cisco - see here: Child Net::SSH2 object trouble.

    Ultimately, I got a hack job working, but would love to see a better approach that does something like you mention about integrating modules on the back end so re-use instead of re-write code.