Access GIT Using SSH Key

Create SSH Key

Create a SSH (private/public) key using the following command

ssh-keygen -t rsa -C "somerefname"

The above command asks for phase phrase and either enter the pass phrase or press enter for no pass phrase.

The above command generates following two files in your «home»/.ssh directory

  • id_rsa

Login to your GIT hosting server (e.g. or and import the public key into your profile.

Import Key

Import public key into

  • Click your profile icon in the top right corner
  • Click “Bitbucket Settings”
  • Click “SSH Keys”
  • Click “Add Key”
  • Enter the “label” as you wish to identify the SSH key
  • Copy the content of and paste it in “Key”
  • Click “Add Key” button

Checkout using SSH Url

Checkout the repository using the SSH url

e.g. ssh://