ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maciej Zywno" <m.zy...@gmail.com>
Subject Re: [scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)
Date Wed, 15 Nov 2006 17:32:42 GMT
I've just implemented it. It works. What is a preferred way of sharing this
code in case anyone would like to use it?(patch?)

Maciej Zywno

On 11/15/06, Maciej Zywno <m.zywno@gmail.com> wrote:
>
> Thanks,
>
> I can see that both sshexec and scp tasks use jsch library that do support
> http proxy connections. Isn't it just a matter of using this support in
> these tasks? I mean.. I want to extend
> org.apache.tools.ant.taskdefs.optional.ssh.Scp (Sshexec) classes to use
> jsch proxy support as it is mentioned here
> http://www.jcraft.com/jsch/examples/ViaHTTP.java
>
> Does it seem feasible? Do you know whether there are any reasons it's not
> implemented in Ant yet?
>
> Thanks again,
>
> Maciej Zywno
>
> On 11/15/06, Steve Loughran <stevel@apache.org> wrote:
> >
> > Maciej Zywno wrote:
> > > 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.
> >
> > ssh doesnt go through firewalls except with socks. If you have a socks
> > server you may be able to get <ssh> to work.
> >
> > commons-vfs has support for webdav and tasks like <v-copy> to copy files
> > to a virtual filesystem, so if the far end supports webdav you can
> > upload over http, and hence through the proxy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
> --
> zywy




-- 
zywy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message