Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 25370 invoked from network); 15 Nov 2006 17:20:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2006 17:20:03 -0000 Received: (qmail 93158 invoked by uid 500); 15 Nov 2006 17:20:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93123 invoked by uid 500); 15 Nov 2006 17:20:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 93112 invoked by uid 99); 15 Nov 2006 17:20:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 09:20:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [146.197.27.90] (HELO barrierL241.nike.com) (146.197.27.90) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 09:19:56 -0800 X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: [scp/sshexec] Is a connection thru HTTP proxy possible? ( setproxy doesn't help) Date: Wed, 15 Nov 2006 09:16:20 -0800 Message-ID: <200611151719.kAFHJZ4c006662@barrierL241.nike.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [scp/sshexec] Is a connection thru HTTP proxy possible? ( setproxy doesn't help) Thread-Index: AccI1Znd54kFQN3ERiScdX2evNMtVwAAhmUw From: "Anderson, Rob (Global Trade)" To: "Ant Users List" X-OriginalArrivalTime: 15 Nov 2006 17:16:20.0950 (UTC) FILETIME=[C501BF60:01C708D9] X-WSS-ID: 694594E41KK2483655-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Scp and sshexec tasks will work through a firewall, just as ssh and scp executables will. There is a difference, however, between going through a firewall and an http proxy server. Ssh cannot be proxied through an http proxy server. In the case of a firewall, you will need to make sure that port 22 is forwarded to the appropriate machine inside the firewall, essentially poking a hole in the firewall to allow the access required. -Rob Anderson > -----Original Message----- > From: Maciej Zywno [mailto:m.zywno@gmail.com]=20 > Sent: Wednesday, November 15, 2006 8:46 AM > To: Ant Users List > Subject: Re: [scp/sshexec] Is a connection thru HTTP proxy=20 > possible? ( setproxy doesn't help) >=20 > As far as I understood from > http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html, > the properties you mention are used by "protocol handlers".=20 > So I guess they are used by classes that extend e.g.=20 > URLStreamHandler e.g. > sun.net.www.protocol.http.Handler. However scp task uses jsch library( > http://www.jcraft.com/jsch/) that operates on raw sockets=20 > which I think don't use the system proxy settings. >=20 > Actually now I'm quite sure ant SCP task cannot go thru=20 > firewall. I hope I'm wrong. >=20 > On 11/15/06, Peter Reilly wrote: > > > > Try using Ant1.70rc1 with java5. > > by default this uses the systems proxy setting. > > > > Peter > > > > > > On 11/15/06, Maciej Zywno wrote: > > > Hiya, > > > > > > I want to use scp and sshexec task to connect to servers that are=20 > > > behind HTTP proxy. Is it possible? (It seems that=20 > scp/sshexec tasks=20 > > > don't use > > the > > > properties that are set by task). > > > > > > Thanks, > > > > > > Maciej > > > > > > -- > > > zywy > > > > > > > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > additional=20 > > commands, e-mail: user-help@ant.apache.org > > > > >=20 >=20 > -- > zywy >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org