First of this tutorial is for reference for our devs.
If you are presented with this error.
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Now this is a import part to getting this up and running, first setup a elastic ip and then login to you ec2 instance via ssh .
This will switch you to a super user, now you can setup you keys with.
ssh-keygen cat ~/.ssh/id_rsa.pub
Copy and paste the output into bitbucket.
Now you should be good to go.