<?xml version="1.0" encoding="windows-1252"?>
<node id="1016825" title="net::sftp dies in the middle" created="2013-02-03 09:14:48" updated="2013-02-03 09:14:48">
<type id="115">
perlquestion</type>
<author id="693920">
david2008</author>
<data>
<field name="doctext">
Hi all,&lt;br&gt;

&lt;p&gt;
I have a problem with net::sftp.&lt;br&gt;
It dies in the middle. &lt;br&gt;
I send the command&lt;br&gt;
&lt;/p&gt;

&lt;code&gt;
  my %args = (user=&gt;'x', password=&gt;'y', debug=&gt;'1');
 ##The ftp modules
 my $sftp = new Net::SFTP('x.y.z',%args);
 my $put_code = $sftp-&gt;put($local_file, $remote_file);
print "hi"
&lt;/code&gt;
&lt;p&gt;
and it dies in the middle&lt;br&gt;
i get the following debug log&lt;br&gt;
sftp: Sent SSH2_FXP_OPEN I:0 P:&lt;file_name&gt;&lt;br&gt;
Connection closed at x.pl line 26&lt;br&gt;
It does not get to the print.&lt;br&gt;
I use Net::SFTP 0.10.&lt;br&gt;

I don't have an idea how to continue to debug this issue.&lt;br&gt;
&lt;/p&gt;
Thanks,
David
</field>
</data>
</node>
