Unable to push via ssh

Ricardo Cabezas Gómez
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 20, 2023

 

I get the following from

ssh -T git@bitbucket.org:

authenticated via ssh key.

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

 

I can pull, I can clone but i can't push:

sudo git push -u origin master
git@bitbucket.org: Permission denied (publickey).
fatal: No se pudo leer del repositorio remoto.

Por favor asegúrese que tiene los permisos de acceso correctos
y que el repositorio existe.

 

2 answers

0 votes
Ricardo Cabezas Gómez
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 24, 2023

Hi, @Erez Maadani 

 

It's the second option.
How can I give it write access?

 

Thanks!

Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2023

Hi @Ricardo Cabezas Gómez 

If you added the key to your account, you would need to check the "User and group access" under you repo/project settings.

If you added the key under access keys, it will be read-only by definition. 

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 20, 2023

Hola @Ricardo Cabezas Gómez 

Try running: git remote -v

And make sure the push url is the same as the fetch url.

Another option might be that your public key / account has read only access.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events