Re: Specifying options for Net::SFTP



On Fri, 28 Dec 2007 09:46:15 -0800 (PST), Ron Bergin <rkb@xxxxxxxxxx>
wrote:

Try changing it to this (note the use of the { } braces instead of ( )

$sftp=Net::SFTP->new ($site,{user => $username,
password => $password,
debug => 1,
ssh_args => [ options => ["SetupTimeOut
300", "ServerAliveInterval 300", "ServerAliveCountMax 3"]],
}) or die "Problem connecting to SFTP server. $!\n";

Well, the login itself usually works fine, this problem occurs
probably only one time in many hundreds. It's the passing of the
timeout options I'm not sure of.

Rich
--
If you squeeze my lizard
I'll put my snake on you
I'm a romantic adventure
And I'm a reptile too
.



Relevant Pages

  • Re: Specifying options for Net::SFTP
    ... debug => 1, ... or die "Problem connecting to SFTP server. ...
    (comp.lang.perl.misc)
  • Re: Fehlermeldung 1609 und 1603 beim Aufspielen der Headset-Software
    ... > be a problem with the package, or a problem connecting to ... > a domain controller on the network. ... Vielleicht haben die Plantronics-Deppen die Gruppe "Users" hartkodiert. ...
    (microsoft.public.de.german.win2000.applications)
  • AD Membership Connection
    ... I am having a problem connecting using the ActiveDirectory Membership provider. ... However when I try to login to my web app using a simply login form, I always get the error message: ...
    (microsoft.public.dotnet.framework.aspnet)