We have setup a EC2 build server and would like to use SSH keys to clone the repo.
Steps taken:
cd ~/.ssh
ssh-keygen -t rsa
created config:
host bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/bitbucket_rsa
User git
Loaded public ssh key on bit bucket:
ssh-rsa ...key... ec2_user@ip-censored
When:
git clone https://git@bitbucket.org/user/repo.git
It ask for password. What should we check or do to see where we are going wrong?