in reply to Net::SSH::Expect Connection Refused
Just to clarify:
- The cisco_ssh_login() function works fine when the router (or whatever) is setup to use ssh
- When the target device can only be accessed by telnet, your script fails as you describe
- When you say 'fails in the first line', you mean the first line of cisco_ssh_login(), not the whole script, right?
fnord
In Section
Seekers of Perl Wisdom