------------------------------------------------ On 17 Jul 2003 08:23:54 -0000, "vemulakonda uday bhaskar" <[EMAIL PROTECTED]> wrote:
> > hi all, > > i am tring to tranfer files between two linux systems through > sftop Please use a more descriptive subject line, "help me out please" is not terribly to the point. > > i have installed the following modules : > <snip list of modules installed> > > > and my original code is : > > > #!/usr/bin/perl > > use Net::SFTP: > > use strict; > use warnings; > > my $host="192.168.255.214"; > my $user="shuban"; > my $password="shuban"; > my $proto="sftp"; > > my > $hp=Net::SFTP->new("$host",user=>"$user",password=>"$password",proto=>"$proto") > or die "not connected"; > >From the Net::SFTP and Net::SSH::Perl docs there does not appear to be a 'proto' >argument. And if you are referring to the 'protocol' argument, it would need to be >some combination of 1 and 2, though for Net::SFTP I believe it forces 2. > and the error displayed after running the perl file with the above > code is : > > "Request for subsystem 'sftp' failed on channel '1' at > /usr/lib/perl5/site_perl/5.6.0/Net/SFTP.pm line 66." > > please help in this regard. > > i have sent a mail earlier with the same problem , but i got reply > fort sending the original code. the code above is the original > code . > Right and asking that you turn the debug flag on and provide the output from the session which your message still did not include, and that is probably going to be the most helpful information you can provide. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]