SSH Config

I needed to setup svn+ssh on a non standard port. I had not used ssh config file before & it does exactly what I needed it to do.

~user/.ssh/config

FROM:

Subversion Users: Re: Useing a non-standard ssh port in a svn+ssh://example.com:123456/repository

host svn1
    Hostname svn.example.com
    Port 80
    ForwardAgent no
    ForwardX11 no

host svn2
    Hostname svn.example.com
    Port 123456
    ForwardAgent no
    ForwardX11 no

Leave a Reply