I was wondering if you can help me get the Net::SFTP module working. I am
very new to the Linux world and I used the following command to install the
module:
perl -MCPAN -e 'install Net::SFTP'
I went through the installtion which I thought was successful. When I
execute the following I get a connection timeout:
#!/usr/bin/perl
# Use statements.
use strict;
use warnings;
use Net::SFTP;
# Connect to our SFTP stage server.
my $sftp = Net::SFTP->new("XXX.XXX.XXX.XXX",
user=>"XXXXXXXX",
password=>"XXXXXXXXXX",
debug=>1);
I get the following output:
aabox02: Reading configuration data /root/.ssh/config
aabox02: Reading configuration data /etc/ssh_config
aabox02: Allocated local port 1023.
aabox02: Connecting to 208.109.219.89 , port 22.
Can't connect to 208.109.219.89, port 22: Connection timed out at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl.pm line 208.
I have also run the following to insure the SSH module is installed:
perl -MCPAN -e 'install Net::SSH'
My perl version is 5.8 running on Red Hat Linux:
Linux version 2.4.21-32.ELsmp (bhc...@tw...) (gcc
version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)) #1 SMP Fri Apr 15 21:17:59
EDT 2005
I have no problem accessingsftp if I use the command line sftp program.
Any help you can provide would be great.
Thanks,
Ken
|