On my bitbucket account I have made a public repository named 'https://bitbucket.org/Peixe_verde/compare_qpcr_ddpcr/src/compare_eDNA_in_ddPCR_and_qPCR/'. In the bitbucket website, where I am logged in I can go to 'repository settings' from there I can select 'Access tokens' This allowed me to create an API token. Locally on Ubuntu 24.04 LTS in a terminal I can navigate to the folder with the files I wish to push. I can check that the folder is setup with ' git remote -v', which gives me : "bitbucket https://bitbucket.org/Peixe_verde/compare_qpcr_ddpcr.git (fetch)
bitbucket https://bitbucket.org/Peixe_verde/compare_qpcr_ddpcr.git (push)
origin https://bitbucket.org/Peixe_verde/compare_qpcr_ddpcr.git (fetch)
origin https://bitbucket.org/Peixe_verde/compare_qpcr_ddpcr.git (push)'". I can locally do a "git commit". I then try 'git push bitbucket repositoryname'. And get asked for username and password. I insert my username and the API token but get the 'remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.
fatal: Authentication failed for ' . I cannot see what is wrong. The repository exists, and I have API token that should work as password. What could be wrong?