
on attempting to generate ssh-key:
$ ssh-keygen -t rsa
you will get:
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/userName/.ssh/id_rsa):
earlier at this moment I entered bitbucket, since I was generating it for but bucket account which got saved in my local repo folder instead of ~/.ssh folder. and it generated two files by the name bitbucket and bitbucket.pub i.e private and public key respectively.
I went to ~/.ssh folder again and entered
$ ssh-keygen -t rsa
but this time I neither entered the name nor entered paraphrase, then copied using cat ~/.ssh/id_rsa.pub | pbcopy and pasted it to my bitbucket account > sshKeys