in reply to Re^4: Net::SSH::Perl ConnectTimeout (ssh -o option)
in thread Net::SSH::Perl ConnectTimeout (ssh -o option)

Thanks salva for the suggestions. I added the time() in the debug line as I not sure to tie time to STDERR. Suggestion welcome. As far as the timeout is concerned, issue is from
sourceserver: Trying password authentication. to sourceserver: Login completed, opening dummy shell channel. (please no +te this obtained from a successful login attempt, without timeout) Taking too long to complete. Timed out after 60 seconds.
I'm using following code to logon to target server:
$ssh = Net::SSH::Perl->new($server, debug => 15, options=> [ "UserKnownHostsFile /usr/local/apps/.ssh/known_hosts"]);
Is there other option I could use to debug this further? Thanks.

Replies are listed 'Best First'.
Re^6: Net::SSH::Perl ConnectTimeout (ssh -o option)
by salva (Canon) on Jan 22, 2015 at 21:03 UTC
    I don't know. There could be some incompatibility/bug on the remote server. It announces itself as OpenSSH 4.3 so, it is quite old!

    As you seem to be on a Linux or Unix system my advice would be to use my module Net::OpenSSH. Net::SSH::Perl is mostly unmaintained nowadays and full of bugs.