#!/usr/bin/perl -w
use Net::SFTP;
my $host = "10.10.10.10";
my %args = (
user => 'user',
password => 'pass',
debug => 'false'
);
my $sftp = Net::SFTP->new($host, %args);
print "connected!";
$sftp->get("/tmp/tmp/test2.txt", "/home/advserv/sean/test2.txt");
####
# ./sftp2.pl
advlogs: Reading configuration data /home/advserv/.ssh/config
advlogs: Reading configuration data /etc/ssh_config
advlogs: Connecting to 10.10.10.10, port 22.
advlogs: Remote version string: SSH-2.0-OpenSSH_4.1
advlogs: Remote protocol version 2.0, remote software version OpenSSH_4.1
advlogs: Net::SSH::Perl Version 1.30, protocol version 2.0.
advlogs: No compat match: OpenSSH_4.1.
advlogs: Connection established.
advlogs: Sent key-exchange init (KEXINIT), wait response.
advlogs: Algorithms, c->s: 3des-cbc hmac-sha1 none
advlogs: Algorithms, s->c: 3des-cbc hmac-sha1 none
Segmentation Fault (core dumped)
####
# perl -v
This is perl, v5.6.1 built for sun4-solaris-64int
(with 48 registered patches, see perl -V for more detail)
####
# perl -v
This is perl, v5.10.0 built for sun4-solaris