cat: ssh-rsa: 没有这样的文件或目录可以将 Codeship SSH 添加到 AWS

cat: ssh-rsa: No such file or directory to add Codeship SSH to AWS

我正在尝试将 codeship SSH 添加到 aws cat ssh-rsa [SSH_KEY] >> .ssh/authorized_keys,但我遇到了关于 http://www.eq8.eu/blogs/19-setting-up-simple-wordpress-deployment-with-codeship-to-aws-ec2

的以下错误 cat: ssh-rsa: No such file or directory

请告诉我如何解决。因为我现在正在尝试使用代码传输将 nodejs 应用程序部署到 aws。或者无论如何我都可以使用 codeship 将 nodejs 应用程序部署到 aws。

您可以在项目 常规 设置页面上找到您的 Codeship 项目的 public 密钥。然后,您可以获取此密钥并将其添加到要部署到的 EC2 实例上的 .ssh/authorized_keys 文件中。

有关此主题的文档文章,请参阅 https://documentation.codeship.com/general/projects/project-ssh-key/