in reply to Re: Strange behavior for PUT function in Net::SFTP::Foreign
in thread Strange behavior for PUT function in Net::SFTP::Foreign

Hi Salva

I tried using the method mentioned on page http://search.cpan.org/~salva/Net-SFTP-Foreign-Backend-Net_SSH2-0.05/lib/Net/SFTP/Foreign/Backend/Net_SSH2.pm but the results were still the same. I am still getting the same error. I only made following inclusions at starting

$ssh2 = Net::SSH2->new(); $ssh2->connect($host) or die "Unable to connect $host $@ \n"; print " SSH Connected \n"; $ssh2->auth_password($user,$passwd) or die "Unable to login $@ \n"; print " SSH Authenticated \n"; $sftp = Net::SFTP::Foreign->new(ssh2 => $ssh2, backend => 'Net_SSH2') +|| die "$sftp->error";

rest of the code remains the same. Can you please guide me what am I doing wrong here?

Replies are listed 'Best First'.
Re^3: Strange behavior for PUT function in Net::SFTP::Foreign
by salva (Canon) on Sep 05, 2011 at 12:02 UTC
Re^3: Strange behavior for PUT function in Net::SFTP::Foreign
by salva (Canon) on Sep 05, 2011 at 12:04 UTC
    And BTW, you don't need to do anything else besides installing it. Leave your script as it was.