I have a repository on BitBucket and I'm trying to use Git GUI to connect to it over SSH and clone the repository to my local folder. I've added a public key (generated in Git) to the BitBucket account (in Setting -> SSH keys).
I copy the clone command from BitBucket (the "Clone this repository" option in the repository's Source page) and paste it to Git GUI. The clone command:
git clone git@bitbucket.org:mycode/myserver.git
Then I press the "Clone" button and get this error:
git clone git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What else am I forgetting here that it doesn't work?