Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Windoze:SFtp into a scalar

by NateTut (Deacon)
on Dec 03, 2010 at 15:39 UTC ( #875204=note: print w/ replies, xml ) Need Help??


in reply to Windoze:SFtp into a scalar

Thanks for the great suggestions & sample code. I'm hung up on trying to get Net::SSH2 installed. I tried

C:\Src\pl\ParseAWSEvents>ppm install http://theoryx5.uwinnipeg.ca/ppms +/Net-SSH2.ppd ppm install failed: The PPD does not provide code to install for this +platform

I'm running ActiveState 5.10 BTW. I couldn't find Net::SSH2 in any of the repositories I've configured in ppm.


Comment on Re: Windoze:SFtp into a scalar
Select or Download Code
Re^2: Windoze:SFtp into a scalar
by salva (Monsignor) on Dec 03, 2010 at 19:58 UTC
    Actually, Net::SSH2 is not absolutely required. As far as you use public key authentication, the default Net::SFTP::Foreign backend will happily use plink or openssh to connect to the remote server.

    Though, in Windows, if you want to authenticate using a private password, things become harder because the module uses Expect to implement that feature but that module does not work under ActiveState (or Strawberry) Perl. An alternative is to pass the password to plink in the command line using the -pw switch but anyone able to log to the machine (or to run arbitrary programs there) will be able to see the password so I usually disrecommend this method. See the module FAQ.

Re^2: Windoze:SFtp into a scalar
by syphilis (Canon) on Dec 04, 2010 at 01:40 UTC
    ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd

    That's the wrong command for perl 5.10. Instead try:

    ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/Net-SSH2.ppd

    Cheers,
    Rob

    Update:
    Or, for all versions of Win32 perl from perl-5.6 thru to 5.12 (including x64 builds of 5.12) the following should now do the trick:

    ppm install http://www.sisyphusion.tk/ppm/Net-SSH2.ppd

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://875204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-08-21 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls