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

Permission denied (publickey). fatal: Could not read from remote repo

$ git fetch
\302\ Permission denied (publickey).
fatal: Could not read from remote repository.


1 comment


I deleted the passwd file in C:\Users\YOUR_USER\AppData\Local\Atlassian\SourceTree and also deleted any passwords for Bitbucket in the Windows Credential manager (Control Panel\User Accounts\Credential Manager) -> Windows Credentials

Next, I also checed the repository settings in the repo where the error occurs (cog symbol in the top right of Sourcetree -> click "Edit" on the remote repository path.

(After changing to look like other repository URLs, I could fetch with no problems)

Hope this helps


Log in or Sign up to comment
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...

69,520 views 132 29
Read article

Atlassian Community Events