Unable to push code to my private repo

I set up ssh keys after reading the instructions from the confluence.  I am still getting the following error:

repository access denied. access via a deployment key is read-only.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I am able to push my code properly to Github. Don't really know where I am going wrong.

I am trying to push to my private repo.

 

The command ssh -T git@bitbucket.org gives the following output:

authenticated via a deploy key.


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

This deploy key has read access to the following repositories:

myName/repoName: xxxxxx -- my_email_address

3 answers

This widget could not be displayed.

Same troubles here. I followed all the steps from the main page after creating the repo. I even created a new ssh key just for bitbucket and added it to the repo's access keys. no dice.

Fixed it!

 

  1. Remove the SSH key from the repo. (Click on repo name > Settings > Access Keys)
  2. Add SSH key to Account settings SSH keys. (Click on your avatar > Bitbucket Settings > SSH Keys)

unbelievable

I figured it out after just trying this out of desperation ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚ 

Same here, working! Tks

Thanks it works for me.

This widget could not be displayed.

First, remove the key from that repository.

Next, add the key to your own account - there's an option in your Bitbucket settings.

I did what you said, but, I am still getting the same error. :(

The same here

Working! Tks!

This widget could not be displayed.

did you solve this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,337 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you