Wait, I misread :)<br><br>Have you tried using scp directly to verify that all works in a more simple environment?<br><br><div class="gmail_quote">On Mon, Mar 16, 2009 at 5:36 AM, Phil Kirsch <span dir="ltr">&lt;<a href="mailto:kirsch.phil@gmail.com">kirsch.phil@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div bgcolor="#ffffff" text="#000000">
<p><font color="black" size="3" face="Times New Roman"><span style="font-size: 12pt;">#!/usr/bin/perl<br>
<br>
use strict;<br>
use Net::SFTP;<br>
<br>
my $user = &quot;IPX0611B0811_ACI_DATA&quot;;<br>
my $host = &#39;<a href="http://SFTP.impaxlabs.com" target="_blank">SFTP.impaxlabs.com</a>&#39;;<br>
my $pass = &quot;impax&quot;;<br>
my $logn = &quot;$user&quot; . &quot;\@&quot; . $host;<br>
my $sftp = Net::SFTP-&gt;new(&quot;$logn&quot;, password=&gt;&quot;$pass&quot;,
debug=&gt;1);<br>
print (&quot;Done\.\n&quot;);</span></font></p>
<p><b><font color="black" size="3" face="Times New Roman"><span style="font-size: 12pt; font-weight: bold;">The results come out like
this:</span></font></b></p>
<p><font color="black" size="3" face="Times New Roman"><span style="font-size: 12pt;">#
./transfer.pl<br>
datafax3: Reading configuration data /root/.ssh/config<br>
datafax3: Reading configuration data /etc/ssh_config<br>
datafax3: Allocated local port 1023.<br>
datafax3: Connecting to <a href="mailto:IPX0611B0811_ACI_DATA@SFTP.impaxlabs.com" target="_blank">IPX0611B0811_ACI_DATA@SFTP.impaxlabs.com</a>,
port 22.<br>
datafax3: Remote protocol version 2.0, remote software version
OpenSSH_5.1<br>
datafax3: Net::SSH::Perl Version 1.34, protocol version 2.0.<br>
.atafax3: No compat match: OpenSSH_5.1<br>
datafax3: Connection established.<br>
datafax3: Sent key-exchange init (KEXINIT), wait response.<br>
datafax3: Algorithms, c-&gt;s: 3des-cbc hmac-sha1 none<br>
datafax3: Algorithms, s-&gt;c: 3des-cbc hmac-sha1 none<br>
datafax3: Entering Diffie-Hellman Group 1 key exchange.<br>
datafax3: Sent DH public key, waiting for reply.</span></font></p>
<p><b><font color="black" size="3" face="Times New Roman"><span style="font-size: 12pt; font-weight: bold;">At this point there is a
long pause, followed 15 or 20
seconds later by:</span></font></b><br>
Connection closed by remote host. at
/usr/perl5/site_perl/5.8.4/Net/SSH/Perl/Kex/DH1.pm line 41</p>
<font color="black" size="3" face="Times New Roman"><span style="font-size: 12pt;">Because
the word &quot;Done&quot; does not print, I am quite certain that the script is
simply dying at this point. Does anyone have any ideas for
troubleshooting this problem?<br>
<br>
Thanks!<br>
<br>
Phil Kirsch<br>
</span></font>
</div>

<br>_____________________________________________________________<br>
Seattle Perl Users Group Mailing List<br>
     POST TO: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>
SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list" target="_blank">http://mail.pm.org/mailman/listinfo/spug-list</a><br>
    MEETINGS: 3rd Tuesdays<br>
    WEB PAGE: <a href="http://seattleperl.org/" target="_blank">http://seattleperl.org/</a><br></blockquote></div><br>