I'm having a hard time trying to make Capistrano deploy to a VPN using a 
gateway.

Here is the architecture:

DeploymentServer --> Gateway --> PrivateServer

I don't know Ruby and I'm not a Capistrano expert so could you tell me if 
there is something wrong in my code?

ssh_options[:forward_agent] = true
set :ssh_options, {:auth_methods => 'publickey'}
ssh_options[:verbose] = :debug
set :ssh_options, {:keys => ['~/.ssh/GATEWAY_KEY.pem', 
'~/.ssh/PRIVATE_SERVER_KEY.pem']}
set :gateway, 'ubuntu@GATEWAY_IP:PORT'
server 'PRIVATE_IP', :app, :web, :db, :primary => true

It doesn't work and using this syntax I wonder how Capistrano could figure 
out which key to use. Using SSH from one server to another it works.

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to