首页 > 解决方案 > 使用带有 Bash 脚本 Linux 的 SSH 克隆 Bitbucket 存储库

问题描述

我正在尝试vm通过 terraform 提供一个。我想Bitbucket使用sshon克隆存储库vm。我正在使用它来 bash 脚本文件git clone git@bitbucket.org:projectname-com/ansible.git。但我得到了这个错误:

The authenticity of host  
'bitbucket.org(***.***.***.*)' can't be established.
  1. 我创建了ssh私钥/公钥。
  2. Access key使用 public key 在 bitbucket 存储库上创建。

请让我知道如何bitbucket通过sshbash 脚本进行身份验证并克隆存储库?

标签: linuxbashbitbucketterraform

解决方案


推荐阅读