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.

77 Responses to “Fix Invalid Port Number Error with TortoiseSVN and PuTTY”

  1. kedell says:

    Thank you soooooo much… 2 days I’m getting crazy… Great advise…

  2. Jürgen says:

    Thanks! It did help ;)

  3. Juggy says:

    thanks. that did it.

  4. Benjamin says:

    Thank you very much! :-)

  5. Maik says:

    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.

  6. Aaron says:

    Bless You (and google)

    Thanks! saved me lots of troubleshooting.

  7. dharana says:

    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.

  8. Browitt says:

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

  9. PRX says:

    Merci! (thanx)

  10. Thanks! Very helpul

  11. Asad says:

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

  12. bluewave says:

    Thank you so much! Now I can work remotely again.

  13. Elliot,

    Congratulations, you save my time.

    Thanks,

    Mauricio Bitencourt

  14. mad says:

    thanks, saved an hour :)

  15. Steve says:

    Ahhhh!!!! Much better. THANKS!!!!!!!!!!!!!!!

  16. Cody Baker says:

    Thank you!!!! Saved a lot of time!

  17. mat says:

    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

  18. Jerome says:

    THANK YOU !!! REALLY THANK YOU !!! You saved me from hours and hours of torture :)

  19. Nigel says:

    Cheers ….., been struggling with this all morning

  20. Morten says:

    Once more: thanks a lot! :)

    Morten

  21. dan says:

    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.

  22. Guy says:

    ditto, thanks!

  23. daniel says:

    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!

  24. sv says:

    excellent – thank you for posting that.

  25. Nirmit says:

    Thanks much !! this was very helpful..

Leave a Reply