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

I'm inclined to agree with atcroft. You can set the KeyRegenerationInterval in the script:

#!/usr/bin/perl use strict; use warnings; use diagnostics; use Net::SSH::Perl; my $host = 'host'; my $username = 'user'; my $password = 'password'; my $cmd = 'ls -laR /some/directory'; my $ssh = Net::SSH::Perl->new( $host, protocol => '1,2', debug => 1, options => ["KeyRegenerationInterval 1h"] ); $ssh->login( $username, $password ); $ssh->session_id; my ( $stdout, $stderr, $exit ) = $ssh->cmd($cmd); print $stdout, "\n";

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl hangs after 1 hour
by FloydATC (Deacon) on May 24, 2009 at 05:36 UTC
    I have enabled debugging and key regeneration to see if it helps. It's 7 am on a sunday morning and I'm working from home... WTF ;-)