#!/usr/bin/perl -w
use strict;
use CGI;
use Net::SFTP;
my $host = '<remote host>';
my $login = '<username>';
my $password = '<password>';
my $port = <remote port>;
. . .
my $sftp = Net::SFTP->new($host,
user => $login,
password => $password,
debug => 1,
ssh_args => port => $port
);
When I attempt to run the script for one particular remote host it appears as if the script successfully connects but then:
snapple: sftp: Sending SSH2_FXP_INIT
Use of uninitialized value in numeric gt (>) at D:/Perl/site/lib/Net/SSH/Perl/Channel.pm line 82.
Use of uninitialized value in pack at D:/Perl/site/lib/Net/SSH/Perl/Buffer.pm line 105.
Connection closed at D:\Web\NPG\admin\cgi-bin\NetSFTPTest.pl line 24
Is anyone familiar with this? Any ideas on where to look or what to change?
Thanks in advance.
dcoleman
In reply to Net::SFTP issue -- uninitialized value in Net/SSH/Perl by dcoleman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |