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

I believe that problem is caused by a bug in Net::SSH2.

I have uploaded a new version of Net::SFTP::Foreign::Backend::Net_SSH2 that includes a work around for it.

  • Comment on Re: Strange behavior for PUT function in Net::SFTP::Foreign

Replies are listed 'Best First'.
Re^2: Strange behavior for PUT function in Net::SFTP::Foreign
by masteradit (Initiate) on Sep 05, 2011 at 11:09 UTC

    Thanks Salva

    I will try to use Net::SFTP::Foreign::Backend::Net_SSH2

Re^2: Strange behavior for PUT function in Net::SFTP::Foreign
by masteradit (Initiate) on Sep 05, 2011 at 11:57 UTC

    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?

      And BTW, you don't need to do anything else besides installing it. Leave your script as it was.