Non-Standard SSH Ports with Tortoise SVN

Firstly, if you are not using SSL for all your sites, you should step it up! NameCheap's SSL certificates start at only $9. There's no excuse!
Firstly, if you have not tried Digital Ocean's SSD Virtual Servers for only $5/mo, I highly recommend them!

Supernifty shows a quick hack for this but it doesn’t work for multiple SVN servers. So you can take it one step further and put a batch script in between which will let you enter the port number in your connection string and it will pull it out and pass it to TortoisePlink. Save this script as something like ssh_router.bat and then go to TortoiseSVN->Settings->Network and set the SSH client to ssh_router.bat. Now you can pass this type of connection string to Tortoise: svn+ssh://

@echo off
set HOST=%1
set PORT=%HOST:*:=%

IF [%PORT%]==[%HOST%] (
    set PORT=22

c:\\Progra~1\\TortoiseSVN\\bin\\TortoisePlink.exe -P %PORT% %HOST% %2 %3

About this entry

Good Reads