Question

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 git@bitbucket.org:user/project.git.

remote: not found fatal: repository ‘git@bitbucket.org:user/project.git’ 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 id_rsa.pub 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/id_rsa.pub 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.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.