Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SSH show authenticated but cannot do any git action on repository

German Gonzalez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2024

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2024

Hello @German Gonzalez and welcome to the Community!

The message "authenticated via ssh key" just means that Bitbucket Cloud recognizes that SSH key - meaning that key is added somewhere in Bitbucket - but it doesn't necessarily have access to the repository you are trying to access.

If you have multiple keys in your machine, it may be the case that the "wrong" key is being used, so I would suggest that you test the following : 

1. List all the keys from your ssh-agent 

ssh-add -l

2. Remove any keys from the agent that you don't want to use in Bitbucket

ssh-add -d <path to the ssh key>

3. Add the correct SSH key to the agent  

ssh-add <path to the correct SSH key>

After those steps, you can try cloning the repository again and check how it goes.

Hope that helps! Should you have any questions, feel free to ask.

Thank you, @German Gonzalez !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events