http://www.perlmonks.org?node_id=655468


in reply to Net::SSH::Perl timeout

You may find useful Net::SSH::Perl ConnectTimeout (ssh -o option).