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

Hello salva,

What is a better alternative to Net::SSH:Expect?

I use it but don't know any better.

Thanks,
Rob

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

Replies are listed 'Best First'.
Re^3: Net::SSH::Expect error .SSHAuthenticationError Login timed out
by salva (Canon) on Oct 26, 2011 at 07:29 UTC
    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.

      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.