Where did you find `set :ssh_options` documented for v3? It doesn't exist that way, and you are instead to use a `.ssh/config` (can be global in your home directory, or committed to the root of your project repository) as documented here https://github.com/capistrano/sshkit#tunneling-and-other-related-ssh-themes
Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 3 June 2015 at 15:27, matteo bruno <[email protected]> wrote: > 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, "[email protected]" > 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 [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/capistrano/73839e4c-5413-4006-876e-a8b54f93ca30%40googlegroups.com > <https://groups.google.com/d/msgid/capistrano/73839e4c-5413-4006-876e-a8b54f93ca30%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CAN_%2BVLW%2B7bb%2B8F%2BRB%3D2QhuyoATAfGS_6x24Ye_2mkXATWmjQbw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
