|We don't bite newbies here... much|
Issue with ssh to a cisco smart switchby edimusrex (Monk)
|on Sep 12, 2017 at 20:12 UTC||Need Help??|
edimusrex has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to get the version information off of a cisco sg300 smart switch. I have decided to use the module Net::SSH2::Cisco which I have used in the past for a cisco phone server. When running the following script
I get the following error
Net::SSH2 error -18:LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED Authentication failed (username/password) authentication failed for user - `cisco' at ./switch.pl line 12
Not really sure what the issue here is. I can ssh into the switch no problem from the command line.
Thanks in advanced
** Update **
I think I have isolated the issue but now need to figure out how to implement it. The issue seems to be related to the expected prompt for the username/login. The switch expects "User Name:" as the prompt. I've switched to using the module Net::Appliance::Session which appears to have a way to allow custom prompts, just a matter of figuring it out now. Help always appreciated.