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

Re: TortoiseSVN with SSH and other port than 22

From: JU <magog001_at_web.de>
Date: 2006-05-11 01:03:31 CEST

Hi Stefan!

Stefan Küng wrote:
> JU wrote:
>
>> I've tried to use a different port (9022) than 22 for "svn+ssh" but it
>> doesn't work.
>> I'm using TortoiseSVN v1.3.3.6219 and added the following line to...
>> TortoiseSVN --> Settings --> General --> "Subversion configuration file":
>> ssh = $SVN_SSH ssh -p 9022
>
> What's $SVN_SSH set to?

See bottom of "Chapter 6. Server Configuration" or read the following copy of
the documentation.
====
[tunnels]
joessh = $JOESSH /opt/alternate/ssh -p 29934

This example demonstrates a couple of things. First, it shows how to make the
Subversion client launch a very specific tunneling binary (the one located at
/opt/alternate/ssh) with specific options. In this case, accessing a
svn+joessh:// URL would invoke the particular SSH binary with -p 29934 as
arguments—useful if you want the tunnel program to connect to a non-standard port.

Second, it shows how to define a custom environment variable that can override
the name of the tunneling program. Setting the SVN_SSH environment variable is a
convenient way to override the default SSH tunnel agent. But if you need to have
several different overrides for different servers, each perhaps contacting a
different port or passing a different set of options to SSH, you can use the
mechanism demonstrated in this example. Now if we were to set the JOESSH
environment variable, its value would override the entire value of the tunnel
variable—$JOESSH would be executed instead of /opt/alternate/ssh -p 29934.
====

That line is predefined but commented out in the TortoiseSVN setup.
I only added the "-p 9022" to it an removed the "#" in-front of the line to
enable it.

>> I've also tried:
>> ssh = ssh -p 9022
>>
>> TortoiseSVN still tries to connect to port 22 (used
>>
>> Is this a bug/feature and how can I finally change the port?
>
> I don't know which ssh program you're using, but maybe it's not '-p'
> that defines the port?

I assume that TortoiseSVN delivers everything needed to access "svn+ssh".
I've also Putty and ZOC installed.

I'm going to verify the SSH stuff but if it can't find the application specified
I think it should show an appropriate error message. Maybe I just found
something that will help me.

> How did you check that TSVN still uses port 22?

Etherdetect - Packet sniffer to capture network traffic.
With that program I see requests going to port 22.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu May 11 01:03:27 2006

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

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