in reply to Re: Net::SFTP connection failure
in thread Net::SFTP connection failure

Hi Khen1950fx,

Thanks i have tried the cipher => 'blowfish-cbc' thing and the encryption changed to blowfish but the program still aborts...
i still cannot control the login process and (apperantly) the Net::SFTP forces my program to exit... i cannot control it not even using eval{...}

The only way i made the dam thing work and login was to increase (a lot) the sshd (/etc/ssh/sshd_config) autentication timeout value..., but this is not a solution i cannot expect every user out there to change this value.

I think that i have all the necessary modules installed i have installed Net::SFTP from cpan (perl -CPAN... etc).


Migas - Miguel

Replies are listed 'Best First'.
Re^3: Net::SFTP connection failure
by salva (Canon) on Sep 21, 2006 at 08:20 UTC
      Hi,

      That is a "shell" around the ssh commands right ?... but it might work and be faster... but the lack of windows support is a down for me... simplebackup is suppose to be cross-platform...
      But i will look into it

      Thanks !

      Migas - Miguel
        That is a "shell" around the ssh commands right ?

        Well, no!

        Net::SFTP::Foreign uses the ssh binary to connect to the remote server but the SFTP protocol that runs over the SSH connection is fully implemented in Perl. Initially it was a fork of Net::SFTP, but I have almost completelly rewritten it.

        It should work on Windows but it doesn't, I believe that it is actually a bug on the cygwin port of OpenSSH. Unfortunatelly my lack of knowledge of the Windows platform has not allowed me to resolve that issue (patches would be very welcome!). Another posibility would be to use the Putty plink utility instead of OpenSSH.