dcoleman has asked for the wisdom of the Perl Monks concerning the following question:
#!/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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP issue -- uninitialized value in Net/SSH/Perl
by Anonymous Monk on Dec 03, 2007 at 12:36 UTC | |
by Anonymous Monk on Dec 03, 2007 at 13:51 UTC | |
by Anonymous Monk on Dec 03, 2007 at 17:43 UTC | |
by Anonymous Monk on Dec 03, 2007 at 22:43 UTC | |
by HiUCImOn (Initiate) on May 07, 2008 at 18:50 UTC | |
by gsp (Initiate) on Apr 13, 2014 at 18:12 UTC | |
by Anonymous Monk on May 07, 2008 at 14:16 UTC | |
by Anonymous Monk on Dec 04, 2007 at 11:07 UTC |