TeamCity代理错误"无法在代理上执行结帐"

mis*_*hod 13 teamcity github agent teamcity-7.0

我在MacOS上运行TeamCity 7服务器和代理.我的回购是在github上.我使用ssh,我知道验证配置正确,因为测试成功.

当我使用VCS Checkout模式"在服务器上自动"时,构建工作正常,但是当我使用VCS Checkout模式"Automatically on agent"时,我收到此错误.

[13:40:35][Updating sources] Failed to perform checkout on agent: '/usr/bin/git fetch --progress 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:275)
    at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:159)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:139)
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

小智 21

尝试将teamcity.git.use.native.ssh = true作为配置参数添加到构建配置中.

这是帮助我解决类似问题的原因.我从这里学到了这个技巧.