[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Subclipse with netcat path

From: Mark Phippard <markphip_at_gmail.com>
Date: Wed, 12 Nov 2008 14:54:17 -0500

On Wed, Nov 12, 2008 at 2:42 PM, Daniel Valim Liberman
<danielvl_at_gmail.com> wrote:

> We have a subversion repository for our source code at work, and we use
> svn+ssh:// to work remotely with it. From outside our netork (e.g, working
> from home), we don't have a vpn already set up at our servers, and the SVN
> repository is not on a machine that is accessible from outside.
> For that, we use another server to give us access to the internal network.
> So, basically:
>
> {{internet}} <---> [public_access_server] <---> [internal LAN, including svn
> repository]
>
> Well, to connect in an easier way to any computer at our LAN we configure
> an automatic netcat path on our machines at home (outside our LAN) to ssh
> directly the internal machines, through the public_access_server. Something
> like:
>
> $> cat ~/.ssh/config
> Host *.internal.ourdomain.com
> KeepAlive yes
> ProxyCommand ssh -t public_access_server.public.ourdomain.com
> '/bin/netcat -w 2 %h 22'
>
> It works perfectly when, on a shell on my Ubuntu (Hardy), I execute:
>
> svn co svn+ssh://svnrepo.internal.ourdomain.com/<repositorypath>
>
> ... or any other svn commands. So, my client on Ubuntu uses the same
> settings as the ssh client, using my ~/.ssh/config file to "establish the
> path". BUT, subclipse (1.2 and 1.4, on Eclipse 3.2.2) can't find my
> svnrepo.internal.ourdomain.com so it doesn't work, it looks like it's trying
> to access it fist an not trying thru svn+ssh, as it should (or at least as
> the default svn client on my Ubuntu does). The message on my Eclipse console
> is something like:
>
> svn: Cannot connect to 'svn+ssh://svnrepo.internal.ourdomain.com': There was
> a problem while connecting to svnrepo.internal.ourdomain.com:22
> Connection refused
>
> Does anyone think it could be fixed? Or... if it should work, how can I
> set this up correctly? I tried to use JavaHL and SVNKit, none of them seems
> to work.

Did you ever get JavaHL properly loaded? See:

http://desktop-eclipse.open.collab.net/wiki/JavaHL

JavaHL uses the same SSH config as the command line and should work.
However, if the command line normally prompts you for anything, then
it will not work as you cannot respond to the prompt. If you launch
Eclipse from a Terminal session then you will get the prompts in that
Terminal. The better thing is to use something like ssh-agent so that
you do not have to respond to any prompts.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-11-12 20:54:34 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.