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:[EMAIL PROTECTED] 
> 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 <[EMAIL PROTECTED]> wrote:
> >
> > Try using Ant1.70rc1 with java5.
> > by default this uses the systems proxy setting.
> >
> > Peter
> >
> >
> > On 11/15/06, Maciej Zywno <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For 
> additional 
> > commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> zywy
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to