I could never understand why openSSH did not work, but I finally got everything that works with PuTTY.
My solution was this: I created a batch file called myplink.bat that would perform a putty with a private key and would not require it to run. Inside this file was the following:
@echo off c:\pathto\plink.exe -ic:\pathto\id_rsa.pub
Opening a gitbash prompt and changing GIT_SSH to this path will work only for this instance, so that it is permanently installed for gitbash I, modified by c: \ pathto \ git \ etc \ profile and added at the end:
export GIT_SSH=c:\pathto\myplink.bat
I also changed c: \ pathto \ git \ cmd \ git.cmd and added:
@set GIT_SSH=c:\pathto\myplink.bat
This fixed git bash, but hudson will fail anyway, leaving me to believe that the hudson environment is changing for git somehow. Then in hudson, I went to manage the settings of hudson -> configure -> environment. I made sure it was checked and added: name: GIT_SSH Value: c: \ pathto \ myplink.bat
I restarted the hudson service and it finally worked.
Please note that if you have spaces on any of your paths, this can also ruin the material, so try to keep your paths clear.
Hope this helps others who have problems with hudson + git + putty.
source share