Subversion svn+ssh access with keys?

Hi all,

I'm trying to configure our subversion access with keys, and I can't get it to work. I have our URL set like this:

svn+ssh://teamcity@<host>/home/svn/repos/platform/trunk

and the private file key path set like:

/home/teamcity/.ssh/id_rsa

There's no password set on the key. From the command line as the teamcity user it connects fine without a password (svn ls, for example), but TeamCity always requires authentication. Am I missing something obvious?

Cheers,
Colin

5 comments
Comment actions Permalink

Hello Colin,

  Please put 'teamcity' username to the username field in TeamCity SVN root settings, it is not enough to put it to the URL.
  Make sure the password field is empty.

   Also make sure you're using checkout on server mode in VCS settings.

   Hope this helps,
  KIR

0
Comment actions Permalink

How can I do this with subversion?  I have a key with no password that I'd like to use to access:

svn+ssh://some-alias/var/svn/myproject/trunk

some-alias: this is the "session" name in PuTTY

0
Comment actions Permalink

Hello,

  TeamCity doesn't support private keys in PuTTY format. You have to convert Putty private key to OpenSSH format (there is an application Putty-something) which allows to do it.
  Enter path to OpenSSH-formatted private key to TeamCity.

  Hope this helps,
  KIR

0
Comment actions Permalink

Please also take a look at http://jetbrains.net/tracker/issue2/TW-7520 - there are some details.

Regards,
KIR

0
Comment actions Permalink

Hi Kirill,

Fantastic, that did the trick - thanks!

Cheers,
Colin

0

Please sign in to leave a comment.