I have a repository that I work on with a team. I have set up an SSH key onto my account and it successfully worked the first time I worked through the steps provided by Bitbucket.
The next day, I logged back in to keep working on the repo. When I went to push, it gave me the following error:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I went back and followed the steps, checked that my config had the ssh address correct, and wasn't able to establish the correct access rights. I ended up running the ssh-agent and ssh-adding the key again. This, for whatever reason seemed to work. Does anyone have a suggestion on what could be the problem?