Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I fix insufficient permissions error during push?


When I try to push commits through Sourcetree I get this error:

fatal: remote error: Insufficient permissions
You cannot push to PF/test_hamilton. Pushing requires write access and your
access is read-only.
fatal: Could not read from remote repository.

However I am able to push using any other means (powershell, git bash, visual studio). In other words, I just have to click the terminal button and type 'git push' as a workaround.

I am also able to push using Sourcetree on my laptop, but not on my remote desktop. remote desktop is located in a secure data server (Again pushes work through other programs here).

I am pushing to a bitbucket server using ssh.

My .ssh folders are identical between machines. The folder contains id_rsa, (generated with openssh) and known_hosts. I've tried converting the private key to .ppk using PuTTY but it did not solve the issue.

My Sourcetree settings are identical under Tools > Options.

My Laptop is using Windows 10 while my RDP is Windows Server 2016. Both versions of sourcetree are the most recent.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

62,512 views 128 27
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you