NotFoundError - EB CLI 找不到 keyname 的 SSH 密钥文件

NotFoundError - EB CLI 找不到 keyname 的 SSH 密钥文件

我运行了命令

eb use my-environment-name

我的目录里面:

/myProject

我有一个.ssh包含密钥对文件的目录'mykey'

/myProject/.ssh/mykey

然后我跑eb ssh

然后我收到这个错误:

INFO: Attempting to open port 22.
INFO: SSH port 22 open.
ERROR: NotFoundError - The EB CLI cannot find your SSH key file for keyname "codesto". Your SSH key file must be located in the .ssh folder in your home directory.

我错过了什么?

答案1

您肯定误读了错误,错误以“ in the .ssh folder in your home directory”结尾。您应该将密钥复制到您的home

cp /myProject/.ssh/mykey ~/.ssh/

您可能在途中遇到另一个错误(密钥名称或权限),但至少home应该处理该问题。

相关内容