You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Anderson, Rob (Global Trade)" <Ro...@nike.com> on 2006/11/15 18:16:20 UTC
RE: [scp/sshexec] Is a connection thru HTTP proxy possible? (
setproxy doesn't help)
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]
> Sent: Wednesday, November 15, 2006 8:46 AM
> To: Ant Users List
> Subject: Re: [scp/sshexec] Is a connection thru HTTP proxy
> possible? ( setproxy doesn't help)
>
> 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".
> So I guess they are used by classes that extend e.g.
> 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
> which I think don't use the system proxy settings.
>
> Actually now I'm quite sure ant SCP task cannot go thru
> firewall. I hope I'm wrong.
>
> On 11/15/06, Peter Reilly <pe...@gmail.com> wrote:
> >
> > Try using Ant1.70rc1 with java5.
> > by default this uses the systems proxy setting.
> >
> > Peter
> >
> >
> > On 11/15/06, Maciej Zywno <m....@gmail.com> wrote:
> > > Hiya,
> > >
> > > I want to use scp and sshexec task to connect to servers that are
> > > behind HTTP proxy. Is it possible? (It seems that
> scp/sshexec tasks
> > > don't use
> > the
> > > properties that are set by <setproxy> task).
> > >
> > > Thanks,
> > >
> > > Maciej
> > >
> > > --
> > > zywy
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional
> > commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
> --
> zywy
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org