in reply to Using Net::OpenSSH

Network equipment can be tricky. There is a FAQ for it on the module documentation: Connecting to switches, routers, etc.