in reply to Net::SSH::Perl hangs after 1 hour

First of all, have you tried using the { debug => 1, } parameter on connecting to see what it gives you?

Also, exactly 1 hour (3600 seconds) sounds familiar. Could it possibly involve the key exchange that occurs periodically?

Just a few thoughts. HTH.

Update (2009-05-23): In looking at the sshd_config file on one of my local machines, I found the following lines, which reinforce my thoughts about the key exchange interval (albeit commented out in that system):

# Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 1h #ServerKeyBits 768
So I guess the next questions are: 1) are you using SSH-1, 2) what is the key exchange interval being used by the server, and 3) what does the debug output suggest? HTH.

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl hangs after 1 hour
by FloydATC (Deacon) on May 24, 2009 at 05:30 UTC
    I'm forcing protocol version 2 since this is the only one enabled at the remote end. Is this issue exclusive for version 1?
Re^2: Net::SSH::Perl hangs after 1 hour
by FloydATC (Deacon) on May 24, 2009 at 07:05 UTC
    Debug results are in:
    05.24 08:29 /var/spool/imap/e/user/eler/10. => /home/vmail/eler/cur/10 +.ads-db20 dmz-webmail: channel 9530: new [client-session] dmz-webmail: Requesting channel_open for channel 9530. dmz-webmail: Entering interactive session. dmz-webmail: Sending command: cat "/var/spool/imap/e/user/eler/10." dmz-webmail: Requesting service exec on channel 9530. dmz-webmail: channel 9530: open confirm rwindow 0 rmax 32768 dmz-webmail: channel 9530: window 0 sent adjust 32768 dmz-webmail: channel 9530: window 0 sent adjust 32768 dmz-webmail: channel 9530: window 0 sent adjust 32768 dmz-webmail: Warning: ignore packet type 20