I'm trying to provision a vm
via terraform.
I want to clone Bitbucket
repository using ssh
on vm
.
I'm using this in to bash script file git clone git@bitbucket.org:projectname-com/ansible.git
. But I got this error:
The authenticity of host
'bitbucket.org(***.***.***.*)' can't be established.
- I created
ssh
private/public key. - I created
Access key
on the bitbucket repository with the public key .
Please let me know how can authenticate to bitbucket
via ssh
in bash script and clone a repository?