Octavian Rasnita [OR], on Friday, May 6, 2005 at 12:25 (+0300) typed: OR> Thank you. I have found some problems with Net::SFTP under Windows, because OR> it tells me that: OR> Can't map service name 'ssh' to port number at D:/usr/site/lib/Net/SFTP.pm OR> line 36
yes, you are on "beginning" of troubles. You have to specify this port explicitely, something like this: #!/usr/bin/perl -w use strict; use warnings; use Net::SFTP; my $host = '11.11.111.11'; my $user = 'root'; my $pass = '*********'; my $sftp = Net::SFTP->new($host,user =>$user, password=>$pass, debug =>1, ssh_args=>[port=>22] ) || die "Can't connect [EMAIL PROTECTED]"; print "Connected\n"; also, you have to _exactly_ follow instruction for this module for windows instalation, then it runs ok. problem was original Net::SFTP which calls NET::SSH::Perl also mid:[EMAIL PROTECTED] is original message, I use excellent The Bat client, which supports this kind of URI, I just click on this and it gets me to the original :) -- How do you protect mail on web? I use http://www.2pu.net ["How could you? Don't you have a conscience?" - Stimpy] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>