Hi,
despite being the administrator of the repository, I cannot execute any of the basic commands - such as git pull and git push - via ssh. I always get the error message The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: Could not read from remote repository.".
And when I try to add my public ssh key through access key of the repository I always get the error "Someone has already added that SSH key to another account.".
Where I'm being wrong?
Regards,
Fabio
Hi @Fabio Marras!
Welcome to the Atlassian Community!
Based on the behavior you mentioned on this thread, I believe that your Git authentication through SSH is failing due to your private SSH key not being added to your local SSH agent. In order to check this, you can run the following commands locally:
$ eval `ssh-agent`
$ ssh-add ~/path/to/private_key
These commands should start your local agent and add your private key to it, making sure that your local machine is able to authenticate with your remote Bitbucket repositories.
You can also check more about the SSH setup process through the following documentation:
In case you are still facing this issue after spinning up your agent and locally adding your private key, please run the following commands locally and share the output with us so we can have a deeper look into it!
$ ssh -Tv git@bitbucket.org
Make sure to scatter through the logs and mask any sensitive information before sharing it in this thread!
Thanks!
Mateus T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.