download entire repository without logging in!!????!!!?!?!

So I just found out that you can get the entire repository without logging into bitbucket.  Obviously I don't want that happening.  I have set up SSH keys to use with Git and that works fine. 

How can I prevent anyone from accessing my stuff?

3 answers

1 accepted

0 votes
Accepted answer

OK, I'm feeling pretty foolish rightabout now...  It turns out that the browser on the remote machine was logged in already by someone at the keyboard and I didn't notice.  I tried logging them out and repeating the process and it failed (as it rightly should.)

You should probably destroy that key and make a new one if it's been transmitted over the network.

Hey there,

When you set up SSH for your Bitbucket account, you're able to use the SSH private key for authentication. This means that it's as important to make sure you keep your private key private as it is to keep your password and username private, combined.

To directly answer your question, you prevent people from accessing your stuff by keeping that private key private. For instance, never, ever transmit the private key over the network; if you ever think your private key is compromised, destroy it, revoke its access, and make a fresh one.

This is not a key-pair issue:

I was getting ready to set up the keys on another machine (I had nothing configured on that machine at all, not even Git.)  I was remotely connected to this computer from one that was logged into bitbucket.

Without thinking, I copied the url from a file in my download (the private key!) on one computer and pasted it into my browser on the other (that was not set up yet.)  I was able to download the file(!)  So for grins, I copied the URL for the zip file (Download Repository) from the first computer and pasted it into the browser on the second and low and behold, I was able to download the entire contents of my repository without ever logging in!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,949 views 7 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you