------------------------------------------------ On 16 Jul 2003 12:07:23 -0000, "vemulakonda uday bhaskar" <[EMAIL PROTECTED]> wrote:
> hi all > > i have installed the Net::SFTP module along with all its > prerequisite modules.. > As I said before you need to help us to help you. Re-posting the same message without any new information is not likely to get any new responses. As Mark G pointed out the code you have here can't work as the $host isn't being set correctly, but based on the line where you are getting the error it does appear you are able to connect over the Net::SSH::Perl connection so the problem lies somewhere else, please copy your real code (remove the password that is fine) and send it. I would suggest (as I did before) to turn on the Debug flag, capture the output of the session and send it to the list so that we can peruse it for any problems. > my code : > > #!/usr/bin/perl > > use Net::SFTP: > > use strict; > use warnings; > > my $host="xxx.xxx.xxx.xxx"; > my $user="xxx"; > my $password="xxx"; > my $proto="sftp"; > > my > $hp=Net::SFTP->new("host",user=>"$user",password=>"$password",proto=>"$proto") > or die "not connected"; > > the above was my code. but wheni run it, i get the following error > : > > "Request for subsystem 'sftp' failed on channel '1' at > /usr/lib/perl5/site_perl/5.6.0/Net/SFTP.pm line 66." > > please give an advise so as to rectify the error. > See above, short of giving us more information to go on, you can take a look at line 66 and trace it back to the problem yourself, but without the requested information there is no way for us to determine the problem. I am assuming you are using Net::SFTP 0.05? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]