<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<p><font color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt;">#!/usr/bin/perl<br>
<br>
use strict;<br>
use Net::SFTP;<br>
<br>
my $user = "IPX0611B0811_ACI_DATA";<br>
my $host = 'SFTP.impaxlabs.com';<br>
my $pass = "impax";<br>
my $logn = "$user" . "\@" . $host;<br>
my $sftp = Net::SFTP-&gt;new("$logn", password=&gt;"$pass",
debug=&gt;1);<br>
print ("Done\.\n");<o:p></o:p></span></font></p>
<p><b><font color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; font-weight: bold;">The results come out like
this:</span></font></b><o:p></o:p></p>
<p><font color="black" face="Times New Roman" size="3"><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">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.<o:p></o:p></span></font></p>
<p><b><font color="black" face="Times New Roman" size="3"><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<o:p></o:p></p>
<font color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt;">Because
the word "Done" 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>
</body>
</html>