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

Re: SVN on an alternate port

From: Alex Kiesel <alex_at_kiesel.name>
Date: 2006-02-04 15:29:05 CET

On Sun, 2006-01-29 at 19:21 -0600, Dave Hoefler wrote:
> Hi all,
>
> I've been trying to get Subversion to work correctly on my Ubuntu box
> running on an alternate port. I've had no luck so far. It works just
> fine when I'm inside my network. I can also ssh just fine on an
> alternate port which I've set up in the /etc/ssh/sshd_config file.
> This works when I'm outside of my network as well. However, when I'm
> trying to checkout out a project outside of my network (at the coffee
> shop, at school, at work (where I know all the ports are open),
> etc...) I keep getting this error:
>
>
> antrover:~/RubyProjects dhoefler$ svn checkout
> svn+ssh://dhoefler@XX.XXX.XX.XX/home/svn/repos/rlog rlog
> ssh: connect to host XX.XXX.XX.XX port 22: Connection refused
> subversion/libsvn_ra_svn/marshal.c:252: (apr_err=210002)
> svn: Connection closed unexpectedly
>
>
> I've tried editing the /etc/services file to change the default ports
> of ssh and svn to alternate ports. Of course I've restarted the ssh
> service numerous times (<b>sudo invoke-rc.d ssh restart</b>). I've
> followed these instructions
> (http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html
> ) on getting SVN to work on an alternate port. Still no luck.
>
> I've tried running svn as a daemon with an alternate port:
>
> svnserve -d --listen-port=43369

Usually, when you use svn+ssh://, svnserve does not need to listen on
any port - this is sshd's duty. sshd is usually run as a daemon and not
in inetd mode, so changing any numbers here does not have any effect
(you did not tell whether you run sshd in inetd mode, so I just assume
this).

The problem may be that you checkout command tries to use the default
port for svn+ssh:// and you need to tell it explicitly to use another. I
good guess would be to try this command:

$ svn checkout svn+ssh://user@host:port/path

... and insert the appropriate values for your setup.

Regards,
-Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 4 15:30:02 2006

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