GitExtension, Putty, Alternate Port

imageLast week I showed you how to install GitExtensions to access Gitosis and promised that I’d show you how to get this all working when Gitosis is running SSH on an alternate port.

There are several reasons why you might want to run SSH on an alternate port.  In my case it is because my ISP blocks incoming traffic on the lower ports and I want to be able to access my computers using SSH’s tunneling feature when I’m on the road.

The trick lies in a feature of Putty.  If you want to do this, you’ll need to install the Putty.exe 

Actually, “install” is probably not the right word.  All you really need to do is download the putty.exe and put it in the GitExtension directory in your program files directory.

What we are going to do now is create a session to connect to our Gitosis server.  So fire up the putty.exe.


Type in the host name or the IP address to the SSH/Gitosis server as well as the alternate port number you need to connect to.  Also, now would be a good time to give the configuration a “session name”


The advantage of using a session like this is that we can also specify the login name and the private key file here, rather than in GitExtensions.  You can do both if you want, as long as they match.


Note:  The Auto-login username you put in here will be the username of the account that is running Gitosis, NOT the account associated with your public/private keys.


Navigate back to the main screen and save the session.


You’ll see we saved the session as “Gitosis.”

You should test this to make sure you can connect.  What will happen is that it will briefly “connect” but then you’ll get kicked out because the server is not allowing this type of connection.  This isn’t an issue because we won’t be using putty to connect.

Now in GitExtensions when you specify the Git URL, instead of specifying the server name between the “@” and the “:”, you’ll specify the name of the session you just created:

[email protected]Gitosis:repositoryName.git

When you do that, the session named Gitosis will be used to make the connection instead of looking for a server named Gitosis.

Related Post

2 Responses to “GitExtension, Putty, Alternate Port”

  • Sam:

    I have been contemplating Git for a while, in concept it certainly sounds the a cool SC, or the holey grail if you will. I have used all of them and still not happy with any SC system out there.
    SVN have caused me a lot of pain, I am a convert to TFS, and will not try anything else till I am really sure it works great.

    Have you tried TFS? How reliable GIT is compared to TFS?

  • Hello Sam,

    I used TFS for a while in a corporate setting, and I believe it works well in that environment. It shines for large, geographically diverse teams with a high percentage of low level coders. Being able to centrally administer it and easily incorporate check in rules is awesome.

    However, I would always choose SVN over TFS for a small team, or a team with a preponderance of high functioning developers. I am currently using BeanStalk ( for hosted SVN and will be moving to their GIT offering after my next release.