- 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
- dump public key to console with
cat ~/.ssh/git.pub
- copy this key into the bitbucket/github add keys input
Done!