linux - 使用带有 Bash 脚本 Linux 的 SSH 克隆 Bitbucket 存储库
问题描述
我正在尝试vm
通过 terraform 提供一个。我想Bitbucket
使用ssh
on克隆存储库vm
。我正在使用它来 bash 脚本文件git clone git@bitbucket.org:projectname-com/ansible.git
。但我得到了这个错误:
The authenticity of host
'bitbucket.org(***.***.***.*)' can't be established.
- 我创建了
ssh
私钥/公钥。 - 我
Access key
使用 public key 在 bitbucket 存储库上创建。
请让我知道如何bitbucket
通过ssh
bash 脚本进行身份验证并克隆存储库?