You are viewing the documentation of TeamCity 2018.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.


Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can upload an SSH private key into a project via the TeamCity web interface and then use it in VCS roots configuration or in SSH Agent build feature.


Supported Key Format

TeamCity supports keys in the PEM format only. If your private key uses a different format, it has to be converted to PEM. For example, the Putty private key format (*.ppk) not supported by TeamCity can be converted to the PEM format using PuTTY Key Generator: use the menu  Conversions  -> Export OpenSSH key.


Recent versions of OpenSSH no longer generate keys in PEM format by default. Unfortunately the new OpenSSH format is not yet supported by TeamCity (see TW-53615). Use the following command to generate keys which can be imported into TeamCityTeamCity compatible keys:

ssh-keygen -t rsa -m PEM