my $targetserver = 'files.responsys.net';
my $sftp = Net::SFTP->new(
$targetserver,
user => 'canneu_scp',
ssh_args => {
identity_files => [ '/tmp/responsys/capgemini.private' ],
debug => 1,
}
) or die "could not open connection to $targetserver\n";
####
can-ornstein:[/tmp/responsys] ./testftp.pl
can-ornstein: Reading configuration data /home/home2/cgmjoshi/.ssh/config
can-ornstein: Reading configuration data /etc/ssh_config
can-ornstein: Connecting to files.responsys.net, port 22.
can-ornstein: Remote protocol version 2.0, remote software version OpenSSH_5.2
can-ornstein: Net::SSH::Perl Version 1.34, protocol version 2.0.
.an-ornstein: No compat match: OpenSSH_5.2
can-ornstein: Connection established.
can-ornstein: Sent key-exchange init (KEXINIT), wait response.
can-ornstein: Algorithms, c->s: 3des-cbc hmac-sha1 none
can-ornstein: Algorithms, s->c: 3des-cbc hmac-sha1 none
can-ornstein: Entering Diffie-Hellman Group 1 key exchange.
can-ornstein: Sent DH public key, waiting for reply.
Key class 'Net::SSH::Perl::Key::DSA' is unsupported: Math::BigInt version 1.78 required--this is only version 1.70 at /usr/lib/perl5/vendor_perl/5.8.5/Crypt/DSA/KeyChain.pm line 4, line 1.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/Crypt/DSA/KeyChain.pm line 4, line 1.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/Crypt/DSA.pm line 7, line 1.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/Crypt/DSA.pm line 7, line 1.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/Net/SSH/Perl/Key/DSA.pm line 14, line 1.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/Net/SSH/Perl/Key/DSA.pm line 14, line 1.
Compilation failed in require at (eval 23) line 1, line 1.
BEGIN failed--compilation aborted at (eval 23) line 1, line 1.
####
perl-Net-SFTP-0.10-1.el4.rf
perl-Net-SSH-Perl-1.34-1.el4.rf
perl-Math-Pari-2.01080603-1.el4.rf
perl-Math-GMP-2.05-1.el4.rf