Warm tip: This article is reproduced from serverfault.com, please click

git-Teamcity到github列出远程引用失败未授权的jgit

(git - Teamcity to github List remote refs failed not authorized jgit)

发布于 2014-04-09 09:51:42

在具有相同凭据的同一台计算机上的Windows上使用github可以正常工作。可以拉/克隆。

但是,teamcity作为Windows服务安装在同一台计算机上,返回以下错误

List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/my-private-repo.git: not authorized
Questioner
NimChimpsky
Viewed
1
11.5k 2014-10-29 19:52:53

在teamcity中,在项目VCS Root中,如果身份验证方法基于ssh公钥/私钥,则提取URL应该类似于git@github.com:.../repository.git使用https://在获取URL导致该错误消息:

列出远程引用失败:org.eclipse.jgit.errors.TransportException ..

发生。