When i try cloning public repository hosted on bitbucket using SSH it fails, for instance when i try cloning the following git repository
git clone git@bitbucket.org:tildeslash/monit.git
It gives me this error
Cloning into 'monit'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
However, when i try cloning the same repo using HTTPS
git clone https://npmtechnologies@bitbucket.org/tildeslash/monit.git
It works, what could be the possible issue?