- Generate key with
ssh-keygen
, as path enter the same as suggested with a different filename of 'git' - run
sudo nano ~/.ssh/config
and add contents like
# add bitbucket deployment key to identity file
Host bitbucket.org
User git
IdentityFile ~/.ssh/git