Simply add the 'sisyphusion' repo to your ppm repositories. (The actual repo is at www.sisyphusion.tk/ppm though if you have a sufficiently recent version of 5.12, it should just be a matter of running ppm repo add sisyphusion )
Then run:
ppm install Net-SFTP-Foreign-Backend-Net_SSH2
and that should install that module, along with its dependencies (Net::SFTP::Foreign and Net::SSH2). Then it's just a matter of:
use Net::SFTP::Foreign;
my $sftp = Net::SFTP::Foreign->
new(host => $server,
backend => 'Net_SSH2',
user => $user,
password => $pass);
(See the Net::SFTP::Foreign docs for further details.)
You can, if you prefer, just ppm install Net-SSH2, but the task of coding is much simplified if you use the Net-SSH2 backend with Net-SFTP-Foreign. (That's what I've been using, and I've found it to be excellent.)
Please let me (or the repo owner) know if there's any problems with any of that.
Cheers, Rob | [reply] [d/l] [select] |
This sounds like the solution I need, so using ActivePerl 5.14 PPM I added repo for sisyphusion, and now get file conflict error c:/perl64/site/bin/libgcc_sis__470.dll when installing. The backend-net-SSH2 already installed the file that Net-SSH2 wants to install. How can I resolve the conflict? Also odd seeing 2 Net-SFTP-Foreign clients 1.73 showing above Net-SFTP-Foreign-Backend-Net_SSH2 in the package name window.
| [reply] |
| [reply] |
| [reply] |