Hi,

No, I think the required information is more like this:

--8<----
You can use PuttyGen to generate the key. However, if you are using OpenSSH
rather than pageant, you will need to export a suitable private key (from
one of the menus at the top of PuttyGen) and save it as id_rsa, and
copy-and-paste the public key from PuttyGen's GUI (it shows but won't save a
suitable version for OpenSSH) and save that as id_rsa.pub. This is because
Putty uses a slightly different format for the key than OpenSSH does.

If git is going to run in unattended mode as a service, you must use
OpenSSH instead of pageant because pageant requires an open session.
To do so:

- Set the HOME environment variable to the directory where the .ssh
directory will be found. Make sure the key in the .ssh directory is
called id_dsa or id_rsa and is in OpenSSH format.
- Set GIT_SSH=C:\Program Files\Git\bin\ssh.exe. Usually setting
GIT_SSH explicitly is not required, just make sure the variable value
is not pointing to plink (i. e. not GIT_SSH=C:\Program
Files\PuTTY\plink.exe)
--8<----

I'll blog about this, it's one of those stupid issues that makes you
waste a lot of time.

On Fri, Nov 4, 2011 at 11:57 AM, Ruben Willems <[email protected]> wrote:
> Hi
>
> you mean adding :
>
> So, I'd recommend changing your git config to use OpenSSH rather than
> pageant. If nothing else, you won't need to worry about starting pageant.
>
> You can use PuttyGen to generate the key. However, if you are using OpenSSH
> rather than pageant, you will need to export a suitable private key (from
> one of the menus at the top of PuttyGen) and save it as id_rsa, and
> copy-and-paste the public key from PuttyGen's GUI (it shows but won't save a
> suitable version for OpenSSH) and save that as id_rsa.pub. This is because
> Putty uses a slightly different format for the key than OpenSSH does.
>
> in the 'Using Git on Windows' section of the docs?
> and a link to the article?
>
>
> just want to know, because I did not set up our build server, so I do not
> know what the exact problem is
>
>
> with kind regards
> Ruben Willems
>
> On 4 November 2011 11:36, Matthias Hurrle <[email protected]> wrote:
>>
>> On 4 Nov., 11:01, Pau Garcia i Quiles <[email protected]> wrote:
>>
>> > I found that thread yesterday afternoon and it indeed works.
>> Great!
>>
>> > Maybe that information is worth adding to
>> > http://www.cruisecontrolnet.org/projects/ccnet/wiki/Git (I cannot
>> > edit).
>>
>> Add it to your git tutorial slides or write a blog post and ask Ruben
>> Willems to reference it.
>>
>> @Ruben: maybe you can help. In my opinion it is surely worth to add
>> that information to the wiki.
>



-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

Reply via email to