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
sshprivate/public key. - I created
Access keyon 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?