Using Private Key for Authentication in teamcity
In this post, we are going to see how we can use ssh keys with teamcity. In order to use this, you need to have GitBash installed in your machine. It provides ssh-key tool to generate public/private keys.
You need to to upload the private key file to you teamcity.
Now you can use the uploaded key in the VCS configuration used by the teamcity project.
If you are using bitbucket, just make sure that you have assigned public key to your account.