Can't git push to Bitbucket: Unauthorized - fatal: Could not read from remote repository : <p>I can't push to Bitbucket and this is the error message:</p>

<blockquote>
  <p>> git push origin master:master<br>
  Unauthorized<br>
  fatal: Could not read from remote repository.</p>
  
  <p>Please make sure you have the correct access rights and the repository
  exists.</p>
</blockquote>

<p>Debugging, I receive this message when I ssh to bitbucket:</p>

<blockquote>
  <p>> ssh -T bitbucket.org<br>
  authenticated via a deploy key.</p>
  
  <p>You can use git or hg to connect to Bitbucket. Shell access is
  disabled.</p>
  
  <p>This deploy key has read access to the following repositories:<br>
  my-username/my-repository</p>
</blockquote>

<p>The <strong>read access</strong> part of this message is suspicious.</p>

<p>PS: I know there are dozens of similar questions, but I couldn't find the exact error message here and only got <a href="https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-push-code-to-my-private-repo/qaq-p/708507" rel="noreferrer">the solution outside</a>. That's why I'm self answering this to help others.</p>
