How to pull master branch from bitbucket

I know just enough about git to commit / push, but can’t seem to get it to download to DO so I can actually host my project.

I am trying to download from mt git repository. I use bitbucket. I’ve tried every variation og git pull and git clone using my url from bitbucket

remote: not found fatal: repository ‘’ not found Permission denied (publickey)

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Make sure everything is setup correctly on Droplet.

Bitbucket offers you to copy whole command and just execute it. Make sure you do it, so you don’t make typo anywhere.

Looking by Permission denied (publickey), you should have id_rsa and in Droplets /home/your-user/.ssh. That same publickey must be specified in Bitbucket settings. I think you need to copy manually using scp or rsync. First make sure you even have .ssh directory in your home folder on Droplet. Then exit SSH, and from your local machine use scp/rsync to copy keys:

  1. scp ~/.ssh/id_rsa your-user@droplet-ip:~/.ssh/
  2. scp ~/.ssh/ your-user@droplet-ip:~/.ssh/

Login again to the Droplet and try to clone again.

You can also use HTTPS link, as it doesn’t require you publickey. You should have on Bitbucket option to change between SSH and HTTPS link.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.