Ask a Question related to Perl / CGI, Design and Development.
-
flora_21 #1
Problem using Net::SSH2 module
Code:#!usr/bin/perl use warnings; use Net::SSH2; use Net::SSH2::Channel; use Data::Dumper; my $ssh2 = Net::SSH2->new(); $ssh2->connect('135.24.224.167') or die $!; print Dumper $ssh2; my $key = "C:\\private-k\\id_rsa"; print "Not Found!\n" if (! -e $key); #$ssh2->auth_publickey("root","password","C:\\private-k\\id_rsa"); print $! unless ($ssh2->auth_publickey("root","password","C:\\private-k\\id_rsa") ); $ssh2->auth_ok(); my $chan = $ssh2->channel() or die "Channel failed".$!; $ssh2->exec("sasaddr"); while (<$chan>){ print };
I am trying to execute this code and getting this error :
Channel failedResource temporarily unavailable at ssh.pl line 20.
No such file or directory
Please help in this issue. Am I doing something wrong?Last edited by Ravish; September 15th at 10:43 PM. Reason: Added [code] BBCode
flora_21 Guest
-
#40534 [NEW]: Problems with output off ssh2 module
From: sheezes at gmail dot com Operating system: Windows XP PHP version: 5.2.1 PHP Bug Type: Sockets related Bug... -
Problem installing GD module
I have successfully installed the GD module on Darwin (10.3), but now I'm encountering problems trying to install it on Linux Ubuntu 5.04. When I... -
problem with Module#append_features
Hi all, I need to write a constructor-like method for a module. From the help I have found the Module#append_features method, which look like is... -
Kernel module 'mga_vid' problem / XV problem
Hello I have a Matrox Millennium G200 graphics card. When I use the XV extension, videos render scrambled. This does not happen with XSHM (but... -
Upgrading from 5.6.0 to 5.8.0 - module problem
Hi all, new to the group, any help is much appreciated! This is the first time I have touched perl but I have recently bought a new server with...



Reply With Quote

