deploy with capistrano using a pem file

后端 未结 2 1422
忘掉有多难
忘掉有多难 2021-01-31 09:55

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

2条回答
  •  死守一世寂寞
    2021-01-31 10:42

    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"]
    }
    

提交回复
热议问题