strange, installing Math::BigInt::GMP fixed it but I don't see that
listed as a dependency anywhere. Did I miss something in the docs?
Steve Neuharth wrote:
> here's my script:
>
> #!/usr/bin/perl
>
> use strict ;
> use lib '/opt/lib/perl' ;
> use Net::SFTP qw(scp) ;
>
> my %sftpArgs = (
> user => 'user',
> password => 'password',
>
> warn => '0',
> debug => '1',
> ) ;
>
> my $sftp = Net::SFTP -> new('127.0.0.1', %sftpArgs) ;
> $sftp -> put("/etc/passwd", "/tmp") ;
>
> Here's what happens....
>
> [root@pnazlx236 ~]# perl test.pl
> pnazlx236.nat.teci.com: Reading configuration data /root/.ssh/config
> pnazlx236.nat.teci.com: Reading configuration data /etc/ssh_config
> pnazlx236.nat.teci.com: Allocated local port 1023.
> pnazlx236.nat.teci.com: Connecting to 127.0.0.1, port 22.
> pnazlx236.nat.teci.com: Remote protocol version 1.99, remote software
> version OpenSSH_3.9p1
> pnazlx236.nat.teci.com: Net::SSH::Perl Version 1.28, protocol version
> 2.0.
> pnazlx236.nat.teci.com: No compat match: OpenSSH_3.9p1.
> pnazlx236.nat.teci.com: Connection established.
> pnazlx236.nat.teci.com: Sent key-exchange init (KEXINIT), wait response.
> pnazlx236.nat.teci.com: Algorithms, c->s: 3des-cbc hmac-sha1 none
> pnazlx236.nat.teci.com: Algorithms, s->c: 3des-cbc hmac-sha1 none
> pnazlx236.nat.teci.com: Entering Diffie-Hellman Group 1 key exchange.
> pnazlx236.nat.teci.com: Sent DH public key, waiting for reply.
> pnazlx236.nat.teci.com: Received host key, type 'ssh-dss'.
> pnazlx236.nat.teci.com: Host '127.0.0.1' is known and matches the host
> key.
> Not an ARRAY reference at /usr/lib/perl5/5.8.5/Math/BigInt/Calc.pm
> line 968.
>
> what's with BigInt?
>
> I'm running RHEL4, kernel 2.6.9-11.ELsmp, perl 5.8 and modules
> compiled from CPAN.
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Ssh-sftp-perl-users mailing list
> Ssh...@li...
> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
>
|