in reply to Net::SFTP connection failure

Well the keywords "slow" and "timeout" ring a bell. The usual answer is install Math::BigInt::GMP or Math::Pari, which speeds up things.

Also if you can, try Net::SSH2, which works much cleaner. See A little demo for Net::SSH2

Also, try installing the latest versions of all requirements and modules, it's remarkable how many times that works. :-)


I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Net::SFTP connection failure
by migas (Novice) on Sep 20, 2006 at 14:38 UTC
    Hi zentara,

    Thanks a lot for your aswer, but i wonder things can be slow... yes... but why can't i control the flow of the program ???

    The program could be trying to access the ssh server, and at a point the ssh server would give up, but how can one control this ??? i don't want my backup program to "crash" i want him to report something to the user.

    Any way I'm going to check ssh2 again THANKS !

    Is it just me or does anyone feel that the Net::SFTP module is not stable work ??

    Miguel - Miguel