perl ssh with timeout?



How can I use perl to connect to a remote computer via ssh with a timeout?

I saw the modules Net::SSH and Net::SSH::Perl, but didn't see timeout options. The latter one I wasn't able to install anyway (the required Crypt::DH never finishes its tests in CPAN shell).

Maybe just use the system command? But it also does not have a timeout?

BTW, all computers I want to connect to don't require my password, so getting a connection should be straightforward.

Thanks!
Markus
.



Relevant Pages

  • Re: How can i speed up my script?
    ... timeout if a remote computer is unavailable: ... I don't know of any way to reduce the timeout experienced ... strValueName = "ProxyName" ... 'WScript.Echo strComputer ...
    (microsoft.public.scripting.vbscript)
  • Re: scp failing
    ... When you run scp from the command line, ... taking out the timeout block does *not* remove ... script and the suggested fixes, ... this script is running another script on a remote computer. ...
    (comp.lang.tcl)
  • SSH / D-Link Router
    ... > minutes until it probably goes in timeout and gives up. ... SSH then worked fine. ... Funny thing is on the next install SSH worked straight away. ... At install time theres a question to do ...
    (freebsd-questions)
  • Re: Remote Workspace
    ... If you want to extend the timeout value in the RWW, ... Value: PublicTimeOut ... Just remember that if the person steps away from the remote computer on the ... "Uval Lubarsky" wrote in message ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote Workspace
    ... I noticed a TrustedTimeOut setting. ... > If you want to extend the timeout value in the RWW, ... > Just remember that if the person steps away from the remote computer on the ...
    (microsoft.public.windows.server.sbs)