I configured the SSH based authentication as below
- Created a public key on my UNIX server
- Added the public key on my Bitbucket repository with reading and write privileges (also tried it at account level)
- changed the URL from https to SSH at bitbucket and Unix server
- verified the URL using and it is displaying SSH URL only
Then Tried to push, but I am getting the below error:
Permission denied (public key). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I have read and write access to the repository push command git push -u origin master
Any idea?