2007fld has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl question
by ig (Vicar) on Aug 03, 2009 at 23:17 UTC | |
by 2007fld (Acolyte) on Aug 04, 2009 at 19:05 UTC | |
by ig (Vicar) on Aug 04, 2009 at 20:28 UTC | |
|
Re: Net::SSH::Perl question
by Khen1950fx (Canon) on Aug 03, 2009 at 23:43 UTC | |
|
Re: Net::SSH::Perl question
by thezip (Vicar) on Aug 03, 2009 at 21:12 UTC | |
by 2007fld (Acolyte) on Aug 04, 2009 at 00:13 UTC | |
|
Re: Net::SSH::Perl question
by tokpela (Chaplain) on Aug 03, 2009 at 21:48 UTC | |
|
Re: Net::SSH::Perl question
by Illuminatus (Curate) on Aug 03, 2009 at 21:41 UTC | |
|
Re: Net::SSH::Perl question
by FloydATC (Deacon) on Aug 03, 2009 at 21:46 UTC |