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.
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
After installing Git, go to the command line where you have installed Putty, and try to access your repository by typing this:
You should be authenticated correctly and after this you should be able to clone your repository with no problems.