I have two SSH keys configured: one for my laptop and another for the testing server.
The laptop key works fine, but the key associated with my user on the server always fails with “unauthorized” whenever I try to pull or push a repository.
When I run:
ssh -T git@bitbucket.org # or ssh -T hg@bitbucket.org
I get the response:
authenticated via ssh key. You can use git to connect to Bitbucket. Shell access is disabled
So the authentication seems to work, but Git operations with my server key are still failing.
The keys are already configured in my Bitbucket profile. At this point, I don’t know what else to try.
Has anyone experienced something similar or can point me in the right direction?
Welcome to the community.
Could you try checking if the SSH key is being added to your SSH agent?
You can check this KB for more info: https://support.atlassian.com/bitbucket-cloud/kb/testing-your-ssh-authentication/
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.