Non-Standard SSH Ports with Tortoise SVN
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://user@host.com:123456/svn/blah/
@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
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]