Versions:

   - Ruby 2.1.2p95
   - Capistrano 3.4
   - Rake / Rails / etc 

Platform:

   - Working on.... Ubuntu 14.04
   - Deploying to... Amazon Linux AMI


Hi,

I'm trying to migrate my capistrano v2 script to the new v3.4 version.

All went well with development stage: I have one EC2 instance, and the 
deploy completed without errors. 

I'm having some troubles with my production script, because I've got a 
proxy (EC2 instance) before my production servers (EC2 instances too); in 
my capistrano v2 script all was working, now I'm using cap-ec2 + capistrano 
v3.4 to deploy my application only to tagged servers, but when I try it I 
get "Permission Denied", my production servers refuse my key.

Maybe I've set something wrong with proxy parameters in my script, can you 
please help me?

Thanks a lot!!

Here you can find proxy parameters:

*CAPISTRANO V2 (working)*

set :gateway, "dep...@xxx.xxx.xxx.xxx"
set :ssh_options, { :forward_agent => true }
default_run_options[:pty] = true
ssh_options[:port] = "22"
ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa_deploy_myapp")]



*CAPISTRANO V3 (not working)*

require 'net/ssh/proxy/command'

set :ssh_options, {
  user: "deploy",
  keys: %w("~/.ssh/id_rsa_deploy_myapp"),
  auth_methods: %w(publickey),
  forward_agent: true,
  port: 22,
  proxy: Net::SSH::Proxy::Command.new('ssh xxx.xxx.xxx.xxx -W %h:%p')
}

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capistrano+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/73839e4c-5413-4006-876e-a8b54f93ca30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to