in reply to Alteon's and SSH

I've run into this same issue with remote access to an Alteon load balancer.

In short, I don't you can't use the $ssh->cmd() method for this connection.

I think that you can do this within the $ssh->shell() method by first setting up a call to $ssh->register_handler() which is prepared to listen for input and send responses using $channel->send_data()... But I wasn't able to find any good examples of this in the documentation. (Here's a bad example.)

Replies are listed 'Best First'.
Re: Re: Alteon's and SSH
by alongwor (Novice) on Nov 10, 2003 at 12:26 UTC
    Thanks for the replies. I tried the method sugested of the ssh command. When I do that, I get the following error on the command line
    Received disconnect from XX.XXX.XXX.XX: Switch: SSH protocol error - packet type not expected.

    I have not had chance to try the shell method with Net::SSH::Perl yet but I shall get onto that and post back with how I go.
    Thanks for the help so far