Capistrano deploying to different servers with different authentication methods

Posted by marimaf on Server Fault See other posts from Server Fault or by marimaf
Published on 2012-06-20T16:56:23Z Indexed on 2012/08/29 3:40 UTC
Read the original article Hit count: 506

Filed under:
|

I need to deploy to 2 different server and these 2 servers have different authentication methods (one is my university's server and the other is an amazon web server AWS)

I already have running capistrano for my university's server, but I don't know how to add the deployment to AWS since for this one I need to add ssh options for example to user the .pem file, like this:

ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "test.pem")] 
ssh_options[:forward_agent] = true

I have browsed starckoverflow and no post mention about how to deal with different authentication methods this and this

I found a post that talks about 2 different keys, but this one refers to a server and a git, both usings different pem files. This is not the case.

I got to this tutorial, but couldn't find what I need.

I don't know if this is relevant for what I am asking: I am working on a rails app with ruby 1.9.2p290 and rails 3.0.10 and I am using an svn repository

Please any help os welcome. Thanks a lot

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about capistrano