Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Username and Password for Adding Unversioned Code via CLI

Deleted user
December 18, 2025

Hello,

 

I’ve gone through the steps as best I can to upload unversioned files to my newly created Bitbucket account: https://support.atlassian.com/bitbucket-cloud/docs/add-unversioned-code-to-a-repository/

 

I’ve set up an SSH key, on both my device and on Bitbucket.

 

When I reach the last step of the link above, I am prompted for a username and password, which don’t seem to be my Bitbucket account credentials. I can’t seem to find any workspace specific credentials.

 

I have tried providing my repository URL or just workspace URL. I have tried turning off 2FA on my account.

 

Any insight into what I may be getting wrong here?

 

Error prompt on macOS terminal is:

 

"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."

1 answer

0 votes
Mirek
Community Champion
December 19, 2025

Hi @[deleted] 

Hm.. Even though you created and added an SSH key, Git will still ask for a username/password if your repository’s remote URL is HTTPS instead of SSH.

So Git is not using your SSH key at all yet.

  • If you use HTTPS, Bitbucket requires an App Password, not your normal login password.
  • If you use SSH, Git should never prompt for a password.

Maybe you can try and check command (git remote -v) and see what is the output 

-> https://bitbucket.org/workspace/repo_test.git (you are on HTTPS)
-> git@bitbucket.org:workspace/repo_test.git (you are on SSH)

Depends on this output you should switch to SSH if on HTTPS. Something like this I guess

git remote set-url origin git@bitbucket.org:workspace/repo_test.git (check if this works.. )

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events