开发者

AWS Capistrano connection error

开发者 https://www.devze.com 2023-03-28 13:32 出处:网络
I am trying my first deployment of rails app using Capistrano to AWS. I am stumped at the following error. apparently connection issue for my ssh, though i could see both my public and private key fi

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

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'

    • 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"

    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 director开发者_如何学Cy - /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.

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


You could try to deploy using your pem file.

Here are the instructions you should include into your deploy.rb file

default_run_options[:pty] = true
ssh_options[:forward_agent] = true
ssh_options[:auth_methods] = "publickey"
ssh_options[:keys] = ["/path/to/your/pem/file/cert.pem"]
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号