Thanks for responding.
The agent machines we are using are Windows based and the service runs as LOCAL SYSTEM. The repo is in GiHub and I have setup the SSH key for the user.
I understand that the system should look for a file called into a directory called ".ssh" under the user profile however this does not appear to be working.
I have created the following directory path (GO is a 32-bit process and therefore the System32 folder is redirected to SysWow64)
C:\Windows\SysWOW64\config\systemprofile\.ssh
And I have copied the SSH private key to a file called id_rsa under that path however the error is
Failed to run git clone command STDERR: Cloning into '/var/lib/go-server/pipelines/flyweight/89e2db45-bbf0-483d-a7c9-af9e7ebf615d'... STDERR: ssh: connect to host github.com port 22: Connection refused STDERR: fatal: Could not read from remote repository. STDERR: STDERR: Please make sure you have the correct access rights STDERR: and the repository exists.
Is there a way of telling the GO git client where to find the private key file in Windows? Do I have the incorrect location specified?
Thanks
Carl