For my .NET project, I'm running TeamCity 6.0.2 (build 15857) on Linux box and Build agent on Windows server (building on windows sounds like a must).
For VCS I'm using git/gitosis which requires private key authentication.
Currently I only have this single Build agent, and checkout "Automatically on agent (if supported by VSC roots)" sounds reasonable to avoid overhead of transfering the sources to agent as part of build process.
I've copied the private key to TeamCity server as required and Test Connection went successfully after I left Username blank.
When I've tried running the build, I got the following response:
TeamCity doesn't support authentication method Private Key with agent checkout. Please use 'Anonymous' or 'Default Private Key' methods.
When I've switched to "Automatically on server", checkout went fine, and build went on with transferring the code to agent etc.
I was wondering if there is a real reason for this restriction or is this perhaps planned for the future? Am I getting something wrong?