Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to push code in Bitbucket cloud using ssh

Bhavin Sanghvi August 17, 2018

Hi,

I am able to pull, commit but not push the changes to my repository by using ssh to the Bitbucket Cloud server

2 answers

1 vote
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2018

Can you give any more information? This just says "there is a problem" without describing the problem.

Bhavin Sanghvi August 17, 2018

I have cloned my repository using ssh from Bitbucket cloud server. I made a change to the source code and when i pushed the change to master branch it does not accept whereas i was able to pull and commit the changes from the master branch.

I am not sure why the push operation does not work.

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2018

What exactly does the error message say?

Bhavin Sanghvi August 20, 2018

Hi James,

 

Below is the error message

tolga@DESKTOP-MUVROBQ:/tmp/vpc-templates$ git push origin master
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.
tolga@DESKTOP-MUVROBQ:/tmp/vpc-templates$

 

ssh causes issues while https is fine

Bhavin Sanghvi September 14, 2018

@jredmond Can you suggest an answer for this.

 

Below is the error message

tolga@DESKTOP-MUVROBQ:/tmp/vpc-templates$ git push origin master
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.
tolga@DESKTOP-MUVROBQ:/tmp/vpc-templates$

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2018

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

You've added the key to the repository. Take it out of there and add it to your account.

Bhavin Sanghvi September 19, 2018

@jredmond This fix worked. 

 

Thank You!

0 votes
kiran jonnalagadda August 17, 2018

check if u have write permissions on that repository.

Bhavin Sanghvi August 17, 2018

I am an Admin

Bhavin Sanghvi August 20, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events