ssh -T hg@bitbucket.org says logged in - You can use git or hg to connect to Bitbucket.
but when pushing to repository from Sourcetree error message says Permission denied (publickey)
Never had this problem before and I've been trying to remedy it for hours. I'm stumped!
I needed to create a second ssh key since I'm using Bitbucket for both work and personal. Creating a second ssh key solved the problem.
Documentation:
https://confluence.atlassian.com/bitbucket/set-up-additional-ssh-keys-271943168.html
Hi Bryan!
Have you checked that the credentials you have stored are correct? You can also check in the 'Accounts' section in Sourcetree if it's still using the right SSH key.
If everything seems to be fine and you're still getting that error, I'd recommend wiping Sourcetree preferences.
Let us know if that helped!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. It turned out that I needed to create an additional ssh key since I use one for my work account (this one to be use for personal items). Creating the additional key solved the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad it's working now!
Have a good day,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bryan Mauger,
Please go through the knowledge article permission denied publickey and a similar question. Hope this helps you.
Thanks,
Ram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. It turned out that I needed to create an additional ssh key since I use one for my work account (this one to be use for personal items). Creating the additional key solved the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.