At the end of the debug log, it says: "
Authentication methods that can continue: password,publickey.
Next method to try is password.
Trying password authentication.
Login completed, opening dummy shell channel.
channel 0: new client-session
Requesting channel_open for channel 0.
channel 0: open confirm rwindow 131072 rmax 98304
channel 1: new client-session
Requesting channel_open for channel 1.
Channel open failure: 1: reason 2:"
What can possibly cause the error “Channel open failure: 1: reason 2”? Where should I look into?
==== my simple script:
use Net::SSH::Perl;
use Net::SSH::Perl::Cipher;
my $hostname = "****";
my $username = "****";
my $passwd = "****";
my $ssh = Net::SSH::Perl->new($hostname, port => 22,
interactive=> 0, debug => 1,
protocol => 2);
$ssh->login($username, $passwd);
my $cmd = "ls –l ";
my($out,$err) = $ssh->cmd($cmd);
print "the output is $out\n";
In reply to Net::SSH::Perl question by 2007fld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |