I have done my personal SSH keys on macOS settings. When I try to clone the repo in a new directory, I get the error:
git@bitbucket.org:Permission denied (publickey).
fatal: Could not read from remote repository
I thought my permissions was done once I configure the SSH key.
Thanks
Hi @jose_paredes and welcome to the community.
Your ssh client may not be offering the key you have added to your Bitbucket Cloud account, or the key may not be loaded to your SSH agent.
Can you try adding the following in the ~/.ssh/config file on your macOS (if the file doesn't exist, you can create it):
Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile /Users/User/.ssh/id_rsa
where /Users/User/.ssh/id_rsa replace with the path and name of your private SSH key, whose public key is uploaded to your Bitbucket account.
Afterwards, try cloning again, and feel free to let me know how it goes.
Kind regards,
Theodora
Thank you, @Theodora Boudale !
Yes, the key was neither generated nor enabled in my SSH agent. I had to use the command:
ssh-keygen -t rsa
And then copy the key type in "Selected SSH kyes" of my repo.
Regards,
Jose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.