[Ssh-sftp-perl-users] SFTP Perl Module Question
Brought to you by:
dbrobins
From: Scott B. <sb...@tr...> - 2007-08-24 17:29:19
|
I am trying to use the NET::SFTP perl module and am getting an error = relating to Kex.pm when running the script from the commandline. =20 I know that sftp works with the site, because if I run just sftp from = the commandline like this (sftp username@sftp_site) it prompts me for a = password and once I enter it, we are connected. =20 I have included the snippit of script as follows: =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 #!/usr/bin/perl =20 # script to get the file specified # on the command line from the # specified ftp site and put it in # specified directory =20 use Net::SFTP; $user =3D "login_name"; $pass =3D "password"; $host =3D "site"; =20 my %args =3D (user=3D>"$user",password=3D>"$pass"); =20 my $sftp =3D Net::SFTP::->new($host,%args,debug=3D>1); =20 $sftp->status; =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 Output from Debugging as follows: =20 ft01.trustamerica.com: Reading configuration data /root/.ssh/config ft01.trustamerica.com: Reading configuration data /etc/ssh_config ft01.trustamerica.com: Allocated local port 1023. ft01.trustamerica.com: Connecting to secureftp.ash.profunds.com, port = 22. ft01.trustamerica.com: Remote version string: SSH-2.0-SRT_1.3.1 ft01.trustamerica.com: Remote protocol version 2.0, remote software = version SRT_1.3.1 ft01.trustamerica.com: Net::SSH::Perl Version 1.30, protocol version = 2.0. .t01.trustamerica.com: No compat match: SRT_1.3.1 ft01.trustamerica.com: Connection established. ft01.trustamerica.com: Sent key-exchange init (KEXINIT), wait response. ft01.trustamerica.com: Algorithms, c->s: 3des-cbc hmac-sha1 none ft01.trustamerica.com: Algorithms, s->c: 3des-cbc hmac-sha1 none ft01.trustamerica.com: Entering Diffie-Hellman Group 1 key exchange. ft01.trustamerica.com: Sent DH public key, waiting for reply. ft01.trustamerica.com: Received host key, type 'ssh-dss'. ft01.trustamerica.com: Host 'secureftp.ash.profunds.com' is known and = matches the host key. ft01.trustamerica.com: Computing shared secret key. ft01.trustamerica.com: Verifying server signature. ft01.trustamerica.com: Waiting for NEWKEYS message. Connection closed by remote host. at = /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Kex.pm line 103 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D _______________________<?xml:namespace prefix =3D o ns =3D = "urn:schemas-microsoft-com:office:office" /> Scott Burks - Manager of Technical Services=20 Trust Company of America / Gemisys Financial Services=20 7103 S Revere Pkwy, Englewood, CO 80112=20 Voice - (303) 705-6049 Fax - (303)705-6171=20 Cell - (303) 588-0594 Email - sb...@tr... =20 |