|We don't bite newbies here... much|
SSH to remote subsystem (Net::OpenSSH?)by sojourner9 (Initiate)
|on Mar 19, 2013 at 16:02 UTC||Need Help??|
sojourner9 has asked for the
wisdom of the Perl Monks concerning the following question:
Trying to create a perl script that SSHv2 to a Cisco device for their XML/NETCONF API. In order to do so, it needs to connect to a subsystem on the remote switch.
Command line example would be:
I've been able to get this to work using Expect. But, I'm not sure that's the best way to do it.
Debugging OpenSSH shows it is giving an SSH command formatted like this:
Which SSH fails on , with the message
SSH appears to want the hostname first, and then the options rather than options first then hostname.
So, should I keep using Expect to SSH to the switch, or is there a better way to do this?