Friday, May 15, 2009

Using a non-standard port for svn+ssh (Mac/Linux)

Let's say you want to access an svn server using the svn+ssh protocol but not the default port 22 for ssh. There are two ways:

Setup an ssh host:
Create/Edit ~/.ssh/config and add the following:

host shortname
Hostname something.company.com
Port 2222
ForwardAgent yes
ForwardX11 no

You can set 'shortname' to whatever you want. You don't have to set 'ForwardAgent' and 'ForwardX11'