Re: [Ssh-sftp-perl-users] Change port used in Net::SFTP
Brought to you by:
dbrobins
From: Mark F. <mar...@ea...> - 2004-04-03 06:40:12
|
You want to use the "ssh args" part of the net::sftp "new" method. This is where you can specify parms to net::ssh::perl. Unfortunately, it is as clear as *mud* how to do this. my $sftp = Net::SFTP->new('somehost.domain.domain', ( user => 'someuser', ssh_args => ( ( [port => (['1234']) ] ) ) ) ); Dave, I asked you *6 months ago* to add an example to the POD. You keep saying it shouldn't work this way. Until it doesn't work this way, wouldn't it be helpful to document how it works now? It took me *two days* to figure out how to do the above. It seems other users have the same challenge. Why not just add it to the POD so we don't have to suffer with it any more? I don't think it's a problem how convoluted it is. Just that it's not documented -- and apparently no interest in documenting it. Mark ----- Original Message ----- From: "Vitali Cesare" <CV...@me...> To: <ssh...@li...> Sent: Friday, April 02, 2004 2:30 AM Subject: [Ssh-sftp-perl-users] Change port used in Net::SFTP Hi to all, I need to get a file on a server that use a non-standard port for ssh daemon, 222, but I don't find a way to specify it on create of connection my $sftp = Net::SFTP->new($host, $user, $passw) or die "Cannot connect to host : $host \n" ; There is a way to specify it in the module Net::SFTP, like in Net::SSH::W32Perl my $ssh = new Net::SSH::W32Perl($host, port => 22, debug => 1, protocol => 2) Many thanks for your time Best regards Cesare ------------------------ Cesare Vitali ------------------------ Met Sogeda S.p.A. ------------------------ mailto:cv...@so... Sistemista Microsoft HP Certified Engineer ------------------------ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |