Project Locker & Git Integration using Secure Shell (SSH) & RSA

For a new project we recently started working on, we inherited existing code repository and source code management setup which included:

1. Project Locker as Free Git Repository Host
2. Git as Code Repository
3. TortoiseGit as Git UI
4. STS for development

In order to get started with development on project, we needed to integrate our Git Repository on Project Locker with local repository using TortoiseGit.

For enabling this integration and communication between these components, Secure Shell (SSH) protocol is used, which is based on RSA authentication. SSH protocol uses a Private-Public key pair to secure the connection thus we generated keys using process defined below and configured Project Locker & Git with our local repository. (more on SSH on WikiPedia)

Generating RSA Keys:

1. SpringSource Tools Suite > Preferences > General > Network Connections > SSH2 > Key Management
2. Press Generate RSA Key
3. Press Save Private Key (Click through the warning for Passpharase). Browse for the destination where you want to put the Private Key. Both private and public keys will be saved in selected folder. (id_rsa,

Configuring Project Locker for Access:

1. Sign into your Project Locker account and select ‘Manage Public Keys’ under User Links on left menu.
2. Press New Key link at the bottom of table. Enter name for your machine, and Username in the format of @
3. Open file in notepad and copy paste its contents into Key field. Make sure there are no extra white spaces at the end of the content. Save Public Key

Generating Putty Formatted Private/Public Keys:

1. Download and Launch puttygen.exe.
2. Clik on Load button and browse to the id_rsa private key generated through STS above.
3. Click on Save private key button, which will save Putty formatted private key to your desired destination with *.ppk extension. Save public Key as well.

Configuring TortoiseGit for remote Repository:

1. Right click in the folder where you want to pull code from remote repository.
2. Select TortoiseGit > Settings from the context menu.
3. In Settings wizard, select Git > Remote settings. If you already have an origin (Default Git remote) then update otherwise create new. use settings below to configure your remote.

Remote: origin
Url: //Url obtained from Project locker’s dashboard against Git repository
Putty Key: D:/Path to your private key generated through Putty

Hopefully these steps will guide you enough, however if you still have queries, feel free to post in comments.

Leave a Reply

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

Change the CAPTCHA codeSpeak the CAPTCHA code