Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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 +/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
Replies are listed 'Best First'.
Re^2: Windoze:SFtp into a scalar
by syphilis (Chancellor) on Dec 04, 2010 at 01:40 UTC
    ppm install

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

    ppm install


    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
Re^2: Windoze:SFtp into a scalar
by salva (Abbot) 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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-11-26 10:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls