TeamCity Git VCS SSH connection with Custom Private Key throws JschException: Auth fail TeamCity Git VCS SSH connection with Custom Private Key throws JschException: Auth fail git git

TeamCity Git VCS SSH connection with Custom Private Key throws JschException: Auth fail


I had the same problem when trying use my Unfuddle git as a VCS Root. To actually fix it, I found the link here which specified changing the Username in the VCS Root Authentication Settings to git.


In my case github key was incorrect. Key placed at ~/.ssh/<your_git_key> on Teamcity Server.


If you don't add public key in github,the exception"List remote refs failed: com.jcraft.jsch.JSchException: Auth fail" may occur.