Instead of entering the username and password for every VCS root registered on JetBrains TeamCity it’s better to register an SSH Key for the communication with the VCS (Version Control System). To enable communication between VCS and JetBrains TeamCity 9.1 first a SSH key has to be created.

Create a SSH key
A manual for SSH key generation can be found on GitHub Help.

Add SSH key to VCS account
In a next step the public key has to be added to the VCS account, which will be used by TeamCity. From security point of view it’s recommended to create a separate account for the build server, so that permissions can be granted according to the build servers neeeds.

Add Private Key to TeamCity
Next the private key file has to be uploaded to the TeamCity server. To make the SSH key available in all projects on TeamCity the key has to be added to the “.

  1. Log in to your TeamCity server and go to the Administration board
  2. Select the “
  3. Navigate to SSH Keys
  4. Click Upload SSH Key and upload the private key
  5. Go to a projects VCS Root
    5.1 Change the Fetch URL to SSH (i.e.
    5.2 Configure the Authenticaiton Setting so that the uploaded key will be used
    IMPORTANT: Connection with SSH key is only working if username is empty!

The TeamCity Free Open Source License was generously provided by JetBrains

1 Comment »

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.