svn+ssh with private key - Authentication required

I'm tring to set up a VCS root in TeamCity version 4.5.4 (build 9071) to use svn+ssh with private key, but it gives me an exception when I Test the connection: "svn: Authentication required for 'svn+ssh://'". I have set up other roots that don't require a key, and they work fine. The problematic repository also works fine with TortousSVN + putty.

I have noticed other people having this problem. The solution in was to export the private key using openSSH and use that. I tried, but it did not help me .

I also tried to manually edit the wrapper.conf in the manner explained in this blog post, with no effect.

I'm specifying SVN Connection Settings: Url, User name, password, as well as SSH settings: private key file, key file password, and ssh port.

I can't find any teamcity-svn.log. Dump from teamcity-vcs.log (some "private data" changed):

[2009-08-10 11:12:33,408]   WARN [hanges loader 5] -      jetbrains.buildServer.VCS - Error while loading vcs version for root 'Gateway2', id=3: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for 'svn+ssh://'
[2009-08-10 11:12:33,409]   WARN [hanges loader 5] -      jetbrains.buildServer.VCS - Error while loading changes for root svn: svn+ssh:// {id=3}, cause: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for 'svn+ssh://'
[2009-08-10 11:13:01,881]   WARN [    http-8080-1] -      jetbrains.buildServer.VCS - Error occurred in test connection
jetbrains.buildServer.vcs.VcsException: svn: Authentication required for 'svn+ssh://'
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.testConnection(
at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(
at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(
at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(
at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(
at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(
at org.springframework.web.servlet.DispatcherServlet.doDispatch(
at org.springframework.web.servlet.DispatcherServlet.doService(
at org.springframework.web.servlet.FrameworkServlet.processRequest(
at org.springframework.web.servlet.FrameworkServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at jetbrains.spring.web.TeamCityDispatcherServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(


TeamCity is a brilliant product, and I really want to use it with my team. Please advice!

Comment actions Permalink


  I'm sorry for delay with the answer.

  Please configure Teamcity to use RSA key produced by OpenSSH (as described in the issue) and enable Subversion debug logging.

  I hope this would give a clue what's wrong with your configuration.

  Kind regards,

Comment actions Permalink

We worked around this issue by opening up to use non-ssh communication between svn server and TeamCity server, so for now I don't need a solution. Thanks anyway. Great product!


Please sign in to leave a comment.