Hi,
I have one account, with two bitbucket workspaces, containing a total of 4 repos.
I am the administrator of all 4 repos, and I can log into bitbucket using the password from my password manager.
I am trying to set up a new development machine, so I need to clone each repo.
When I clone a repo using ssh, I get a failure message about keys, but I can find no documentation about setting up a key file.
When I choose to clone using HTTPS, I am prompted for a password. I enter my bitbucket password, I get thrown out with a password failure.
Also, not only do I need access to clone the repos, I need access to push to them also.
Clearly there is something I don't know or understand.
How should I proceed?
Ian
Hi Ian,
You need to set up SSH keys for your Bitbucket account. Based on the information you provided, you have two workspaces and four repositories, where you are the admin. This should grant you permission to clone and push via SSH.
Go to your Bitbucket personal settings page:
https://bitbucket.org/account/settings/ssh-keys/
Here, you can see all SSH keys associated with your account. Click on "Add key" to add a new SSH key.
You need to copy your public key from the system you will be using to connect to Bitbucket.
On Linux/macOS
Run the following command in a non-root terminal:
cat ~/.ssh/id_rsa.pub
On Windows (PowerShell)
Run:
Get-Content $env:USERPROFILE\.ssh\id_rsa.pub
If You Don’t Have an SSH Key Yet:
Generate a new SSH key pair using:
ssh-keygen -t rsa -b 4096
Press Enter through all prompts to use the default values.
(Note: RSA is widely used, but you may also explore other key types like Ed25519 for better security.)
Once you have retrieved your public key, copy its contents and paste it into the SSH Key field on Bitbucket.
After saving, you will be able to clone and push via SSH instead of HTTPS.
Let me know if you run into any issues!
Regards,
John :)
John,
A huge thank you from me.
Your reply not only gives me the information I need to sort my problem, but you included information others may need later.
The only issue I have is that my set up is a mess. First is to decide if I want one keyfile for bitbucket, one per machine or one per user.
One per user appears most secure, and is manageable with only 3 users.
Thanks again.
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.