我正在尝试在我的 AWS Ubuntu 18.04 LTS 免费层 EC2 实例上安装Rhino Security Labs CloudGoat 。我遵循了设置管理员用户和配置 AWS CLI 的说明,还按照链接站点中的说明和GitHub 上的说明设置了 terraform v0.12。我还将实例的安全组配置为允许所有流量。
但是,当我运行 git clone 命令时,出现“权限被拒绝”错误。完整输出见下文:
sudo git clone git@github.com:RhinoSecurityLabs/cloudgoat.git ./CloudGoat
Cloning into './CloudGoat'...
The authenticity of host 'github.com (<ipv4>)' can't be established.
RSA key fingerprint is SHA256:<RSA key fingerprint>.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,<ipv4>' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我是否需要将 GitHub 上的 SSH 密钥关联到我的帐户,如果需要,我该怎么做?我不确定此时还可以尝试什么。谢谢。