【发布时间】:2014-02-24 17:36:48
【问题描述】:
当我尝试推送到生产环境时,我遇到的问题是这个错误: 部署失败并出现错误:
#<Net::SSH::AuthenticationFailed: ec2-user>
我尝试了很多 Stackoverflow 解决方案,但都无济于事。我的 deploy.rb 是
set :user, 'ec2-user'
set :application, 'name of application on git'
set :repo_url, 'the url from my remote origin to git'
set :deploy_to, 'where my apache points but minus the /public'
我的 production.rb 是
role :app, %w{ip}
role :web, %w{ip} (same as above)
role :db, %w{ip}
set :ssh_options, {
user: "ec2-user",
keys: %w(location to .pem file that I use to ssh in on),
forward_agent: false,
}
我已尝试为两者创建新密钥并使用此处列出的那些 http://craiccomputing.blogspot.com/2008/08/ec2-ssh-and-capistrano.html cap uses admin instead of ec2-user
但还是没有骰子。
想法?
【问题讨论】:
-
你能在this 上指导我吗?
-
你能创建一个stackoverflow帖子吗?你试过什么,它是怎么失败的?这篇文章和引用的另一篇文章都有明确的步骤来尝试解决这些问题;你拿走了吗?
标签: ruby-on-rails amazon-web-services amazon-ec2 ssh-keys