Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

GitExtension, Putty, Alternate Port

DZone's Guide to

GitExtension, Putty, Alternate Port

·
Free Resource

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:

Administrator@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.

 

Topics:

Published at DZone with permission of Dave Bush, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}