我正按照他们的Aptible尝试符合HIPAA标准的PaaS Django Quickstart Guide。我已经使用aptible
CLI来执行Create an App和Provision a Database步骤,但我在Add a Dockerfile遇到了麻烦。
此步骤表示在存储库的根目录中添加Dockerfile
,但之前的步骤尚未创建任何存储库。我假设我必须使用“创建应用程序”中生成的Git远程链接克隆存储库。但是,如果我这样做(并忽略关于主机真实性的警告),我会得到Please make sure you have the right access rights and the repository exists
:
Kurts-MacBook-Pro:Scratch kurtpeek$ git clone git@beta.aptible.com:lucy/test_app.git
Cloning into 'test_app'...
The authenticity of host 'beta.aptible.com (52.21.95.179)' can't be established.
ECDSA key fingerprint is SHA256:FsLUs5U/cZ0nGgvy/OorvGSaLzvLRSAo4+xk6+jNg8k.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'beta.aptible.com,52.21.95.179' (ECDSA) to the list of known hosts.
Connection closed by 52.21.95.179 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
基于Aptible的常见问题解答https://www.aptible.com/documentation/enclave/troubleshooting/permission-denied-git-push.html,我推断我还没有使用Enclave注册我的SSH公钥。
事实上,如果我去Aptible的仪表板并点击“证书”,我看到我还没有。如果我然后点击“上传证书”,我会进入以下菜单:
这可能是一个普遍的SSH问题,但我不确定如何继续这里。我按照以下方式尝试了ssh-keygen
命令:
Kurts-MacBook-Pro:~ kurtpeek$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/kurtpeek/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/kurtpeek/.ssh/id_rsa.
Your public key has been saved in /Users/kurtpeek/.ssh/id_rsa.pub.
这样生成的id_rsa
似乎与所请求的私钥相对应。但是,我在哪里可以找到(相应的)证书?
(我仔细阅读https://support.ssh.com/manuals/server-admin/64/userauth-cert.html但找不到答案。)
答案 0 :(得分:0)
事实证明,为了遵循Django快速入门指南,提供SSH密钥(而不是证书)就足够了。可以通过单击仪表板右上角的名称,选择" SSH密钥",然后在表单中复制粘贴~/.ssh/id_rsa.pub
的内容来输入。