TeamCity GitHub私钥访问被拒绝 [英] TeamCity GitHub Private Key Access Denied
问题描述
有谁知道使用TeamCity和github以及ssh私钥的教程。我试图设置git集线器来连接,我得到一个身份验证错误或拒绝访问。我在Windows 2003上运行TeamCity。我将构建代理作为自定义帐户运行。我使用管理员帐户运行Web服务器。我为自定义帐户和管理员帐户创建了一个密钥。我现在得到一个错误:
连接测试失败:com.jcraft.jsch.JSchException:java.io.FileNotFoundException:C:\Documents和Settings \Administrator.ssh(访问被拒绝)
如果有人成功设置了这个,请帮助。
谢谢。- 克隆网址:git@github.com:username / repository .git
- 克隆存储库到:C:\somepath
- 用户名风格:UserId(jsmith)
- 身份验证方法:私钥
- 私钥链路径:C:\ SSH \ myKeyFile.priv
- 密码短语:仅当密钥文件为使用密码保护
Does anyone know of a tutorial for using TeamCity with github with ssh private keys. I have tried to set up git hub to connect and I either get a authentication error or get access denied. I am running TeamCity on Windows 2003. I am running the build agent as a custom account. I am running the web server under the administrator account. I have create a key for the custom account and administrator account. I now get an error that:
The connection test failed: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Documents and Settings\Administrator.ssh (Access is denied)
If anyone has successfully set this up please help. I am going on 3 hours into this and want to get it solved.
Thanks.
The following VCS Root configuration works for me:
- Clone URL: git@github.com:username/repository.git
- Clone repository to: C:\somepath
- User Name Style: UserId (jsmith)
- Authentication Method: Private Key
- Private Key Path: C:\SSH\myKeyFile.priv
- Passphrase: only if key file is secured with a passphrase
这篇关于TeamCity GitHub私钥访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!