geo_pmonk has asked for the wisdom of the Perl Monks concerning the following question:
It's my first try with Net::SSH::Perl, and at this point all the script does is issue a $ssh->login and attempts to send a command with $ssh->cmd
I've looked through the various module docs and didn't see anything that looked hopeful in restricting the number of concurrent "sessions". Here is a debug log of the failure. Am I using the right perl module for the task? Any suggestions on how to restrict to a single session?
The device I'm trying to access has a very irregular command structure with varying prompts, some asynchronous messages, so the eventual script becomes pretty complex.
Thanks Georgeadmin1@10.2.56.13's password: myhost: Login completed, opening dummy shell channel. myhost: channel 0: new [client-session] myhost: Requesting channel_open for channel 0. myhost: channel 0: open confirm rwindow 1000 rmax 1000 myhost: Got channel open confirmation, requesting shell. myhost: Requesting service shell on channel 0. myhost: channel 1: new [client-session] myhost: Requesting channel_open for channel 1. myhost: Entering interactive session. myhost: Channel open failure: 1: reason 4: Server supports one session + per SSH client
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SSH with Net::SSH::Perl fails "one session per SSH Client"
by tachyon-II (Chaplain) on May 24, 2008 at 02:14 UTC | |
by geo_pmonk (Initiate) on May 24, 2008 at 02:26 UTC | |
by tachyon-II (Chaplain) on May 24, 2008 at 02:49 UTC |