Home » Git » GitExtension, Putty, Alternate Port

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.

image

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”

image

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.

image

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.

image

Navigate back to the main screen and save the session.

image

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.

 

Other post in Git

Related Post

  • Git, Gitosis, Putty and WindowsGit, Gitosis, Putty and Windows I was recently sold on the idea of replacing SubVersion as my version control of choice and moving to GIT, or at least installing GIT and seeing for myself if it is that much better than […]
  • PDFs Using iTextSharpPDFs Using iTextSharp There are several libraries on the market now that allow you to create PDF documents from your .NET applications.  The one I’ve chosen to use is To use iTextSharp, you will need to […]
  • jQuery SplitterjQuery Splitter Hey!  This is pretty cool. I was just mentioning at the last jQuery presentation I did that there were some controls that were definitely missing from the jQuery UI suite of […]
  • Virtual Files using HttpContext.RewritePath()Virtual Files using HttpContext.RewritePath() One of the cool new tricks we are able to perform in ASP.NET that we were not able to use in ASP is the ability to have ASP.NET redirect file requests in the same way that mod_rewrite does […]
  • Computed Columns Using LINQ to SQL ClassesComputed Columns Using LINQ to SQL Classes Last week we looked at the extension points Microsoft has wired into the LINQ to SQL classes and how they can be used to achieve some of the capabilities of the Business Logic Layer (BLL) […]

About Dave Bush

Dave Bush is a Full Stack ASP.NET developer focusing on ASP.NET, C#, Node.js, JavaScript, HTML, CSS, BootStrap, and Angular.JS.Does your team need additional help in any of the above? Contact Dave today.

  • 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 (http://beanstalkapp.com/) for hosted SVN and will be moving to their GIT offering after my next release.