You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
For some reason, bitbucket does not let me push/clone/pull when I try to do it from one of the remote servers I have access to. So, when I do it from my personal machine, bitbucket does not ask for any password and I can do all the things I want. When I am on the server, it asks for a password, when I input the password of my atlassian account, it answers "fatal: Authentication failed". So, I went to the security settings of my account and added the ssh public key in use on the server. But I am still required to input a password, which fails.
What am I doing wrong?
Hello @timongo and welcome to the Community!
Could you please confirm if you are using HTTPS or SSH to clone the repository?
The HTTP URL will look as follows :
git clone email@example.com:WORKSPACE/REPOSITORY.git.git
while the SSH one will be as below :
git clone https://USERNAME@bitbucket.org/WORKSPACE/REPOSITORY.git
In case you are using HTTPS, the password you are being prompted to provide is not the password used to log in to the UI, but a Bitbucket App Password. If you haven't already, you can create a new app password for your account and provide it when git asks you for the password.
However, if you are using SSH and git is asking for a password, you likely have protected your private SSH key with a password once you created it, and this password is required for git to be able to use that key. If you don't remember the ssh key password, you can create a new key (with or without a password), add it to your bitbucket profile, and try cloning the repository using this new key.
Hope that helps!
Let us know in case you have any questions.
Thank you, @timongo !
Thanks, that helps. Actually, I thought I had tried to do a git clone via ssh and that it did not work, but I must be wrong, because guided by your answer, I retried this morning and it worked. So I deleted my former copy and started over with a fresh clone, via git, and it dit not ask me for any password, certainly because I am using a passphrase-less rsa key.
tldr: it works, thanks for your help