in reply to Re^4: net-ssh-expect is giving error
in thread net-ssh-expect is giving error

I'm not sure what you expect to happen. You use Net::SSH::Expect to reboot a remote device. Obviously when rebooting the ssh process on the device will be shut down. Are you simply looking to ignore the connection error reported by Net::SSH::Expect?

Replies are listed 'Best First'.
Re^6: net-ssh-expect is giving error
by james_culling (Novice) on Jan 20, 2014 at 11:42 UTC
    Hey, when I tried with send command exec command. Now I am not getting that error and the device gets rebooted. Thanks!

      Hi James, How did you resolve this issue ? I am also seeing similar issue & am looking for solution

Re^6: net-ssh-expect is giving error
by Anonymous Monk on Jul 02, 2014 at 01:45 UTC

    Hi, I am also facing similar issue. I want to just ignore the connection error reported by Net::SSH:Expect. do you have a way to resolve this?

    Please advice