in reply to Re^2: Net::SSH::Expect error .SSHAuthenticationError Login timed out
in thread Net::SSH::Expect error .SSHAuthenticationError Login timed out

Nowadays, Net::SSH2 or Net::OpenSSH are probably your best options unless you are connecting to one of those routers or switches that only provided a crippled restricted shell or a broken SSH implementation. In that case, Net::Telnet (its docs explain how to use it over SSH) or even just Expect are in my opinion the way to go.

Net::SSH::Expect is just not reliable, specially over slow networks, due to the feeble way it uses to detect when remote commands finnish.

  • Comment on Re^3: Net::SSH::Expect error .SSHAuthenticationError Login timed out

Replies are listed 'Best First'.
Re^4: Net::SSH::Expect error .SSHAuthenticationError Login timed out
by babp (Initiate) on Oct 28, 2011 at 07:16 UTC
    Hi All, Thanks for all your suggestions, there was an issue with the $login_output pattern match. I have one more query Net::SSH::Expect is too slow perticularly with 1.09 version .Please suggest me to improve the perfomance any part of checking or code can i comment out.