Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

deploy with capistrano using a pem file

We have a EC2 instance, and our capistrano setup requires ssh. To connect through ssh normally, I use a .pem file for connecting to the server. how do I utilize this .pem file when using capistrano to deploy?

like image 411
Tyler Jones Avatar asked Oct 19 '12 05:10

Tyler Jones


1 Answers

for capistrano 3 the syntax is somewhat different

set :pty, true  set :ssh_options, {   forward_agent: true,   auth_methods: ["publickey"],   keys: ["/path/to/key.pem"] } 
like image 140
Kinjal Dixit Avatar answered Sep 21 '22 13:09

Kinjal Dixit