[ABE.pm] Re: Net::SCP
john-abe at apt202.net
Tue Jan 17 17:30:45 PST 2006
On Tue, Jan 17, 2006 at 04:58:06PM -0500, Faber Fedor wrote:
> Does anyone in here use Net::SCP? I'm using the OO interface because
> the subroutine interfaces are deprecated.
I have not however I poked around a bit at it.
> My problem is I can't see how to set the port to something other than 22
> using the OO interface. Am I expected to modify Net::SCP?
It uses Net::SSH for it's connection. Net::SSH's new method accepts
an array of args. Net::SSH per its own docs says it just uses the
system ssh bin, so you should be able to pass '-P 2200' or some such in
there as a part of an array.
However after looking at this for a few mins, I see no way to get from
one to the other starting with Net::SCP.
More information about the ABE-pm