hi all

the previous mail is not complete .

i have a code in perl which uses sftp between linux systems.

the code is:

#!/usr/local/bin

use strict;
use warnings;

use Net::SFTP;

my $host="xxx.xxx.xxx.xxx";
$u="username";
$p="password";
my $sftp=Net::SFTP->new($host,Proto=>"tcp",user=>"$u",password=>"$p")
or die "cannot connect";


and i have installed sftp-0.9.9

but it is givibg error saying that
"Requestion for subsystem 'sftp' failed on channel'1' at /usr/lib/perl15/site_perl/5.6.0/Net.SFTP.pn at line 66


and when i go thru the path above and see the 66th line of SFTP.pm
it is like this


"
line : my $subsystem_reply=sub{
       my($channel,$packet)[EMAIL PROTECTED];
       my $id=$packet->get_int32;
       if($packet->type==SSH2_MSG_CHANNEL_FAILURE)
       {
          $channel->{ssh}->fatal_disconnect("Request
          for"."subsystem 'sftp' failed on channe; '$id'");
       }
       $channel->{ssh}->break_client_loop;
}"

please tell me wqhats going wrong and why the error is coming
how to rectify it.

regards uday





___________________________________________________
Click below to experience Sooraj R Barjatya's latest offering
'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek
 & Kareena http://www.mpkdh.com


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to