Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Net::SSH::Perl hangs after 1 hour

by atcroft (Monsignor)
on May 24, 2009 at 00:51 UTC ( #765874=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Net::SSH::Perl hangs after 1 hour
Select or Download Code
Re^2: Net::SSH::Perl hangs after 1 hour
by FloydATC (Chaplain) 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 (Chaplain) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://765874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2015-07-06 23:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls