WHY?: repository access denied. access via a deployment key is read-only.


I am trying to commit my new application to the repository for the first time.   Thought I followed the directions to a tee however I am getting the error in the subject line no matter what I try.

What is the trick to getting the first commit though?   Did I not set up my key properly?   It seems to tell me that keys are for read only access only but how does one commit with only read access?


1 answer

Deployment keys are to deploy. You need to install an ssh key, or push via HTTP.

I was looking for a place I could do that but was finding it not too obvious.   "Access Keys" was the only setting I could find.

that link is broken

oops.  it was broken when i clicked on it for some reason but a copy and paste found it

Hmm weird, trying again https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html If it doesn't work, try copy pasting it in

that got it!   i just didn't see the other place to add keys before.  it's going now.   thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,929 views 1 5
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