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?
Hi Ivana, welcome to the Community!
Was there any SSH key in the agent when you run ssh-add -L?
If not, that means your OS is not saving them. There was a known issue in Mac some time ago, are you using Mac? You'll need to re-add your keys using ssh-add <path_to_key> as you did already.
If your SSH key was already there but you're still having issues, let us know so we can help you investigate this further.
Best regards,
Ana
I am working on a Linux machine. Sorry, that's a big detail to leave out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.