CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [ogit2] SFTP: Edit Log



ogit2
Novice

Mar 16, 2018, 3:22 AM


Views: 5863
Re: [ogit2] SFTP

Hi this is a tricky one as Net::SFTP::Foreign will install on Active Perl Windows but then errors as it requires Net::SFTP installed. It requests backend Net_SSH2 module which is the Net::SFTP module which cannot be installed on Windows. I cannot locate a version that will compile (including dependencies).

However, I have a workaround for all Windows users that works!! The purists will not like it, but it works in Perl!

I will post shortly.


Code
use Net::SFTP::Foreign; 
my $sftp = Net::SFTP::Foreign-> new(host => $host, backend => 'Net_SSH2', user => $user, key_path => $privateKey, passphrase => $passphrase,);



(This post was edited by ogit2 on Mar 16, 2018, 3:23 AM)


Edit Log:
Post edited by ogit2 (Novice) on Mar 16, 2018, 3:23 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives