Fix Invalid Port Number Error with TortoiseSVN and PuTTY

I just wasted an hour on this, so I hope that explaining the solution here will help someone. If you’re using TortoiseSVN and PuTTY, perhaps using a private key created with PuTTYgen (like me), then this probably applies to you. I’m using Windows XP Pro, but Home is probably the same. I didn’t have this problem before because I just used cygwin’s ssh.exe which worked fine.

PuTTY Internal Error
Invalid Port Number
For TortoiseSVN’s SSH cilent, leave the box blank. Do not choose putty.exe, that doesn’t work. Blank is fine, TortoisePlink is fine. Otherwise you see the error above. When you enter the URL to the repository, use the PuTTY saved session name instead of the server name. For example, if your session is MyConnection, use MyConnection for the server instead of, for example, svn.osafoundation.org.

72 thoughts on “Fix Invalid Port Number Error with TortoiseSVN and PuTTY

  1. Thank you! Worked for me, too.

    At the moment i am still using password authentification. For all those who are doing the same led me add, that I needed to insert my Password 3 times in a row. This distracted me quite a while.

  2. Thank you Elliot, you probably saved me a big chunk of time. I came across this problem while trying to relocate my wc to a non-standard port address.

  3. Like everyone else here, I was banging my head against the wall for quite a while before finding your post — thanks for making it!

  4. THANK YOU MAN THANK YOU!!! I have a deadline today and I spent most of yesterday trying to do and import. This helped tremendously!!!

  5. Indeed i think this is a bug of tortoiseSVN. I had the same problem and if you leave the SSH client field blank, it’s fine. You save me from 1 hour of grumbling :)

    thanks

  6. Dude, THANK YOU! I spent DAYS on this, thinking something was wrong with my svn setup or my url for the repository. Well, I only spent a couple hours each day on it, but still.

    THANK YOU.

  7. Thanks so much! I wasted a few hours trying different variations of the url, the svn setup, etc. When all along it was because I put putty there!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>