From faber at linuxnj.com Tue Jan 17 13:58:06 2006 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 17 Jan 2006 16:58:06 -0500 Subject: [ABE.pm] Net::SCP Message-ID: <20060117215806.GA19350@neptune.faber.nom> Does anyone in here use Net::SCP? I'm using the OO interface because the subroutine interfaces are deprecated. 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? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From john-abe at apt202.net Tue Jan 17 17:30:45 2006 From: john-abe at apt202.net (John Cappiello) Date: Tue, 17 Jan 2006 20:30:45 -0500 Subject: [ABE.pm] Re: Net::SCP Message-ID: <20060118013045.GH11097@apt202.net> 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. -- jcap From rjbs-perl-abe at lists.manxome.org Tue Jan 17 15:10:37 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 17 Jan 2006 18:10:37 -0500 Subject: [ABE.pm] Net::SCP In-Reply-To: <20060117215806.GA19350@neptune.faber.nom> References: <20060117215806.GA19350@neptune.faber.nom> Message-ID: <20060117231037.GA6753@manxome.org> * Faber Fedor [2006-01-17T16:58:06] > Does anyone in here use Net::SCP? I'm using the OO interface because > the subroutine interfaces are deprecated. > > 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? I don't use Net::SCP, but a quick look at the source makes it seem highly likely that you can specify port as part of the host name. If you want port 4004, you can set host to "secret-military-base.gov.su:4004" Net::SCP just uses the scp command, or Net::SSH's sshopen3 routine, which does the same (roughly). -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060118/3f777b99/attachment.bin From rjbs-perl-abe at lists.manxome.org Tue Jan 17 18:06:14 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 17 Jan 2006 21:06:14 -0500 Subject: [ABE.pm] Net::SCP In-Reply-To: <20060117231037.GA6753@manxome.org> References: <20060117215806.GA19350@neptune.faber.nom> <20060117231037.GA6753@manxome.org> Message-ID: <20060118020613.GP27474@manxome.org> * Ricardo SIGNES [2006-01-17T18:10:37] > I don't use Net::SCP, but a quick look at the source makes it seem highly > likely that you can specify port as part of the host name. If you want port > 4004, you can set host to "secret-military-base.gov.su:4004" I am wrong. Have you tried "host.tld -P 4004"? That would be amusing. -- rjbs -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060118/e8122064/attachment.bin From ffedor at nyca-llc.com Wed Jan 18 18:14:53 2006 From: ffedor at nyca-llc.com (Faber J. Fedor) Date: Wed, 18 Jan 2006 21:14:53 -0500 Subject: [ABE.pm] Net::SCP In-Reply-To: <20060118013045.GH11097@apt202.net> References: <20060118013045.GH11097@apt202.net> Message-ID: <20060119021453.GF27365@neptune.faber.nom> Damn! I keep forgetting that htis list doesn't set the reply-to header! As I said to John in the private email I just sent him... On 17/01/06 20:30 -0500, John Cappiello wrote: > However after looking at this for a few mins, I see no way to get from > one to the other starting with Net::SCP. Me neither. So I justed pulled out the two lines of Net::SCP code and replaced it with a back-ticked "scp -P yaddayaddayadda". It works. -- Regards, Faber Fedor, BSEE, MCSE, RHCE Chief IT Officer New York Capital Advisors, LLC 631-NYCA-631 (Main Office) 908-237-5237 (NJ Office) 908-320-0357 (Direct) http://www.nyca-llc.com From john-abe at apt202.net Wed Jan 18 18:20:56 2006 From: john-abe at apt202.net (John Cappiello) Date: Wed, 18 Jan 2006 21:20:56 -0500 Subject: [ABE.pm] Net::SCP In-Reply-To: <20060119021453.GF27365@neptune.faber.nom> References: <20060118013045.GH11097@apt202.net> <20060119021453.GF27365@neptune.faber.nom> Message-ID: <20060119022056.GK11097@apt202.net> On Wed, Jan 18, 2006 at 09:14:53PM -0500, Faber J. Fedor wrote: > Me neither. So I justed pulled out the two lines of Net::SCP code and > replaced it with a back-ticked "scp -P yaddayaddayadda". You totally yaddayaddayadda'd over the best part! -- jcap