Git checkout error

I am having a problem with Git agent side checkout.

[13:36:34]: [Updating sources: Agent side checkout...] Failed to perform checkout on agent: 'C:\Git\bin\git.exe fetch --no-tags -q origin +refs/heads/master:refs/remotes/origin/master' command failed.
stderr: java.io.IOException: Authentication failed
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:278)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:162)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:142)
fatal: The remote end hung up unexpectedly

Everything works from the command prompt. Any ideas?

TeamCity 5.1.5 (13602) + Git 1.7.3.1

8 comments
Comment actions Permalink

Hello, do you use passphrase protected ssh key?     

0
Comment actions Permalink

No, the key does not have a passphrase.

0
Comment actions Permalink

It is strange, there should not be any difference if you run command in console by the same user as you run an agent.
Might it be that you use a different account?
We look for ssh keys in $HOME/.ssh, please check that keys exist in home dir of user that start an agent.

0
Comment actions Permalink

AH HA! As it turns out, the web server and the build agents run under different user accounts. The real question is: how do you put up with users like me and not pull your hair out?

0
Comment actions Permalink

))
so everything works now?

0
Comment actions Permalink

Yes, everything is working now.

0
Comment actions Permalink

When you say $HOME/.ssh is that of the client computer or where the Git repository is hosted. I am currently running in to the a similar error message when I try to clone a Git repository host on my computer but under a different user account (git user). I have add the ssh key to the .ssh/authorized_keys file however I the same error as reported earlier. Any help would be great. Thanks.

0
Comment actions Permalink

Hi Chris,
I meant $HOME/.ssh dir on the agent. Do you use agent-side checkout?

0

Please sign in to leave a comment.