I been trying for about three hours to create a VCS Root pointing to a Github repository using "Private Key" as the the Authentication method.

enter image description here

But when I hit the "Test Connection" button I get this error back:

List remote refs failed: com.jcraft.jsch.JSchException: invalid privatekey: C:\Users\Administrator.ssh\EC2BuildServerPrivateKey.ppk

The private key definitely exists, and I've even cloned the repository using this same key using GIT extensions.

Surely I'm not the first one to try and use github as a VCS root!? I'm using Team City 7.1.3!

Can anyone please please help with some suggestions of things to verify?

Maybe I should be using some other "Authentication method" as this one doesn't work?

有帮助吗?

解决方案

I'm pretty confident that TeamCity requires an OpenSSH private key and won't work with a private key in PuTTY Private Key format (.ppk).

You can convert your private key using the PuTTY Key Generator GUI that ships with PuTTY.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top