in reply to Re: Net::SSH::Perl question
in thread Net::SSH::Perl question

Thanks for the reply.

Below is the trace again. It looks just like yours, except the last line with the error message. (I guess I missed something when I pasted my trace first time.)

Do you think it is a connection issue, or perl module issue?

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
Got channel open confirmation, requesting shell.
Requesting service shell on channel 0.
channel 1: new client-session
Requesting channel_open for channel 1.
Entering interactive session.
Channel open failure: 1: reason 2:

Replies are listed 'Best First'.
Re^3: Net::SSH::Perl question
by ig (Vicar) on Aug 04, 2009 at 20:28 UTC

    OK, that looks normal, except for the channel open failure. This is an error indication from the SSH server you are connecting to. You should investigate the server for clues, including any logs it produces. You should find an explanation there.

    What ssh server are you connecting to and what operating system is it running on?

    If you don't need a pseudo terminal (pty) you might try added use_pty => 0 to your options to Net::SSH::Perl->new(). There is a comment in the source code that support for pty is experimental. Maybe it doesn't work with some servers. You don't need a pseudo terminal to run an ls command.