Cannot connect to private repo on GitHub

Completed

Here's the exception I'm getting in Team City (6.5.3 - build 17985):

java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'Program Planning :: Daily Build' : List remote refs failed: com.jcraft.jsch.JSchException: Auth fail      at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)      at java.util.concurrent.FutureTask.get(Unknown Source)      at jetbrains.buildServer.serverSide.impl.CancelableTaskHolder.waitForTaskToComplete(CancelableTaskHolder.java:1)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.doCollectChanges(TopBuildDependencyGraphImpl.java:9)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.access$000(TopBuildDependencyGraphImpl.java:29)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java:1)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$4.run(TopBuildDependencyGraphImpl.java:1)      at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:21)      at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:1)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.runAsSystem(TopBuildDependencyGraphImpl.java:66)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:82)      at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:27)      at jetbrains.buildServer.serverSide.impl.BuildChangesCollector.collectChangesForBuild(BuildChangesCollector.java:21)      at jetbrains.buildServer.serverSide.impl.BuildStarter$1.run(BuildStarter.java:18)      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)      at java.util.concurrent.FutureTask.run(Unknown Source)      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)      at java.lang.Thread.run(Unknown Source)

Here are my VCS settings:

Fetch URL: git@github.com:[orginazationName]/[repoName].git
Push URL: empty
Ref name: master
Clone repository to: empty
User Name Style: UserId (jsmith)
Authentication Method: Private Key
User name: [userName]
Private Key Path: C:\.ssh\id_rsa
Passphrase: empty
Path to git: empty

Note:  I have installed Git for Windows on the build server and I can successfully connect and clone the private repo from this machine from GitBash using the ssh file specified above

2 comments
Comment actions Permalink

I was finally able to resolve this. The only thing I changed was to set the User Name field to empty and it worked.

1
Comment actions Permalink

Lance Cranf is right, it's worked for me too!

0

Please sign in to leave a comment.