Perl-Sensitive Sunglasses | |
PerlMonks |
net::ssh::Perl connecting to f-secure ssh serverby tweetiepooh (Hermit) |
on Oct 05, 2007 at 16:18 UTC ( [id://642950]=perlquestion: print w/replies, xml ) | Need Help?? |
tweetiepooh has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks We need to write a script that will connect to a softswitch (telco), run commands retrieving output to files and sometimes using some of that output as parameters to more commands. The softswitch runs on Windows NT server and uses F-Secure 3.2.0. The client box will be Solaris with Perl 5.8.8. I can run ssh from the shell and connect OK. I can run the commands and see output on screen. I have started to write a demo in Perl and I can login fine, using ssh->shell() I can see the post login welcome and the "shell" promp (oddchar + <). If I go interactive I can see my input on the screen but no response from server. If I send commands I get an error. Gives lots of debug info showing attempt to use key files etc all fail (OK) then using password. I get a login completed. Then it waits. If I press ENTER Ideas much appreciated. I don't need a great deal of fancy stuff. The commands and output are pretty fixed, no real nasties like running passwd.
Back to
Seekers of Perl Wisdom
|
|