Private git for windows go agent

31 views
Skip to first unread message

Jérôme

unread,
Aug 12, 2020, 9:53:28 AM8/12/20
to go-cd
Hi all, I have a goagent under windows server, and I want to use a private git material. I set public and private keys, and it work fine if I try "git clone" with "administror" user of my windows server computer. 
But when I want execute a pipeline, my agent can't clone the git repository. I have the following error :

STDERR: Host key verification failed.
STDERR: fatal: Could not read from remote repository.
STDERR:
STDERR: Please make sure you have the correct access rights
STDERR: and the repository exists.

Do you have any idea ?

Regards,

Jérôme

Aravind SV

unread,
Aug 13, 2020, 12:46:21 PM8/13/20
to Jérôme, go-cd

Hello Jérôme,

This seems similar to: https://groups.google.com/d/topic/go-cd/YBIaZKxR_Vc/discussion

You need to see which user the GoCD Agent is running as and change it at the level of the service or run a zip agent as a different user. The “System” user services run under is not the same as the “Administrator” user.

Cheers,
Aravind

Reply all
Reply to author
Forward
0 new messages