in reply to Re: Net::OpenSSH and Extreme Switch
in thread Net::OpenSSH and Extreme Switch
Salva, thanks for the reply.
When I try your suggestion from the command line, I get no reply (or error) at all.
For the second, I modified the script as you suggested
and I now get the following:my $test = $ssh->capture( {stdin_data => "show vlan\n"} );
Keyboard-interactive authentication Sending a command Pseudo-terminal will not be allocated because stdin is not a terminal. Operation did not work: child exited with code 255 at ./ssh1.pl line 1 +3. Output is: show vlan
I guess I don't understand why if it works from the command line using OpenSSH, it won't work from the script.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::OpenSSH and Extreme Switch
by salva (Canon) on Nov 23, 2009 at 22:24 UTC | |
by rdl (Initiate) on Nov 24, 2009 at 21:18 UTC | |
by rdl (Initiate) on Dec 02, 2009 at 20:35 UTC | |
by rdl (Initiate) on Nov 24, 2009 at 14:13 UTC |