Skip to content

Setup SSH Keys

Creating an SSH connection to ADO will establish a secure relationship between ADO and your machine. This is the recommended way to connect your machine to ADO, however you can also use HTTPS (see later).

Follow these steps in your terminal to create an SSH key and add it to the ADO org.

Create an SSH key

  1. Run ls ~/.ssh. If you have id_rsa files, then move to the next step to add your key to ADO, otherwise continue creating an SSH key.

  2. Run ssh-keygen to create an SSH key.

  3. Follow the prompts with default answers

  4. After creating the SSH keys, run ls ~/.ssh you should see id_rsa and id_rsa.pub

Add your public key to Bitbucket's SSH Key Manager

  • See the contents of your public key by typing cat ~/.ssh/id_rsa.pub or in Windows open the id_rsa.pub document in notepad

  • In Bitbucket, create a New Key in the SSH Public Key manager, with the contents from id_rsa.pub.