Most glorious and wise monks,
I beeshech your help.
I finally got all the packages nessary for Net::SFTP installed, yet I keep running into the same problem.
First, the code:
use Net::SFTP;
my %args = (
user => $Username,
password => $Password,
debug => 0,
protocol => '1,2',
port => '22',
);
my $sftp = Net::SFTP->new( $Host, %args )
or $self->logcroak( "SFTP Object Error: $@" );
printf "<= SFTP Dump => %s\n%s\n", Dumper( \%args ), Dumper( $sftp );
die "Foo!\n";
My Results:
Use of uninitialized value in concatenation (.) or string at C:/Apps/p
+erl/site/lib/Net/SSH/Perl.pm line 107.
Can't map service name 'ssh' to port number at C:/Apps/perl/site/lib/N
+et/SFTP.pm line 36
From what I can see it dies in the new call, so no log message, but I'll be darned if I can find an answer as to what to do.
Thank you.
++Dennis
Update
Well, I've been pounding my head on this for a while and it does not look like you can use Net::SFTP on a windows box.
I'll keep trying and report back what I find, but I get the creapy feeling that this will not work...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.