Net::SSH2 - it has Net::SSH2::SFTP and it's bundled with the Strawberry Perl distribution - which I personally prefer over ActiveState (put's flame retardant hat on).
| [reply] |
Yes, Net::SSH2 is the way to go, imo.
However, I recommend using it via Net::SFTP::Foreign::Backend::Net_SSH2 - which uses Net::SFTP::Foreign.
I don't think these additional modules ship with Strawberry Perl, but installation of them is trivial:
cpan -i Net::SFTP::Foreign::Backend::Net_SSH2
I don't know why the OP would have had trouble installing Net::SFTP::Foreign - perhaps it was because of the absence of Net::SSH2.
Certainly, IO::Pty (which is unusable on native Windows) is not needed.
Cheers, Rob | [reply] [d/l] |
If you are not a purist (everything has to be done from inside Perl), you could also download cURL.exe and execute the commands through your perl script (see UPLOADING and SFTP) | [reply] |