AWS Capistrano的连接错误错误、AWS、Capistrano

2023-09-11 09:47:33 作者:久伴!

我想使用Capistrano的AWS的Rails应用我的第一次部署。

I am trying my first deployment of rails app using Capistrano to AWS.

我难倒在下面的错误。显然连接问题我的ssh,但我可以看到我的两个公钥和私钥文件是present在以下位置 /home/thanikkal/.ssh/config(GOT加文,我没有一次ssh-add) 谁能告诉为什么这个错误?或者建议进一步的故障排除步骤?

I am stumped at the following error. apparently connection issue for my ssh, though i could see both my public and private key files are present at the following location /home/thanikkal/.ssh/config (got added wen i did ssh-add) can anyone tell why this error is? or suggest further trouble shooting steps?

执行`部署:安装

executing `deploy:setup' 执行的mkdir -p /家庭/ Ubuntu的/ MyApp的/家庭/ Ubuntu的/ MyApp的/发行/家庭/ Ubuntu的/ MyApp的/共享/家庭/ Ubuntu的/ MyApp的/共享/系统的/ home / Ubuntu的/ MyApp的/共享/ 登录/家庭/ Ubuntu的/ MyApp的/共享/ PID的 executing "mkdir -p /home/ubuntu/myapp /home/ubuntu/myapp/releases /home/ubuntu/myapp/shared /home/ubuntu/myapp/shared/system /home/ubuntu/myapp/shared/ log /home/ubuntu/myapp/shared/pids"

服务器:ec2-xx-xx-xxx-xx.compute-1.amazonaws.com] 连接失败:ec2-xx-xx-xxx-xx.compute-1.amazonaws.com(错误:: EISDIR:是一个目录 - /home/thanikkal/.ssh/config)

servers: ["ec2-xx-xx-xxx-xx.compute-1.amazonaws.com"] connection failed for: ec2-xx-xx-xxx-xx.compute-1.amazonaws.com (Errno::EISDIR: Is a directory - /home/thanikkal/.ssh/config)

推荐答案

看起来你有冲突的凭据在/home/thanikkal/.ssh/config 你可能想要删除,看看是否可行。

Looks like you have conflicting credentials in your "/home/thanikkal/.ssh/config" You might want to remove and see if it works.

您还需要确保SSH密钥文件夹中包含公共密钥和私有密钥。

You also need to make sure the ssh key folder contains both public and private keys.