How to install Git in Windows using Putty

Last Updated: May 23, 2013 10:41AM PDT

Installing Git, and using Putty to connect to your Git repository can be troublesome, so we recommend that you use openssh instead and follow the guide for installing Git which can be found here . In case you still want to install Git and use Putty, here is a step by step guide on how to do it.

Installing Putty

First, you will need to install Putty by downloading the installation package and running it. The last installation package at the moment of writing this article is putty-0.60-installer.exe which can be found under: "A Windows installer for everything except PuTTYtel" section. Install Putty to the default recommended location.

Adding GIT_SSH variable to environment

After you have installed Putty, add the GIT_SSH variable to your Environment variables which should point to the plink.exe file, installed in the folder where you have installed Putty:

In our case this would be: GIT_SSH=c:\Program Files\Putty\plink.exe

Generating SSH key with puttygen

After setting up the Environment variable, you need to generate and save ssh keys with puttygen. Run puttygen and generate SSH-2 RSA key, and save the public and private keys to a folder of your preference. Before leaving puttygen, copy the public key and add it to your Beanstalk account, under "Profile and Settings" > Keys section.

Adding private key to pageant

After you generated the SSH keys, you need to add the private key to pageant so authentication with your Beanstalk account will work.

Checking out the connection and trying to clone a repository

When you have finished setting up Putty, all you need to do is install msysgit for which you can find details here and check if the connection to your Beanstalk repository works.

After installing Git, go to the command line where you have installed Putty, and try to access your repository by typing this:

set Git
putty git@accountname.beanstalkapp.com:/gittreponame.git

You should be authenticated correctly and after this you should be able to clone your repository with no problems.

Contact support Live chat

Average response time is less than 1 hour between 9 am – 5 pm EST. Chat is instant during those times.

http://assets1.desk.com/raca8b478c9bd89640c451013350d59caa6b66ee1/javascripts/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete