I've trying to get TeamCity to checkout out from our git repo on the agent (I need the .git directory) and I get the following error:
[14:06:48]: Updating sources: agent side checkout...
[14:06:49]: [Updating sources: agent side checkout...] Failed to perform checkout on agent: '"C:\Program Files (x86)\Git\bin\git.exe" fetch --progress origin +refs/heads/master:refs/heads/master' command failed. stderr: java.io.IOException: Authentication failed at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:274) at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:158) at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:138) fatal: The remote end hung up unexpectedly
I'm using a private key and set the user name and password, when I do this as a server checkout it all works fine, does anyone have any idea what could be going out?