diff --git a/lib/capistrano/templates/stage.rb.erb b/lib/capistrano/templates/stage.rb.erb index f4a1bbe6..3f290165 100644 --- a/lib/capistrano/templates/stage.rb.erb +++ b/lib/capistrano/templates/stage.rb.erb @@ -20,6 +20,13 @@ server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value # you can set custom ssh options # it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options # you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start) +# set it globally +# set :ssh_options, { +# keys: %w(/home/rlisowski/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(password) +# } +# and/or per server # server 'example.com', # user: 'user_name', # roles: %w{web app}, @@ -30,5 +37,6 @@ server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value # auth_methods: %w(publickey password) # # password: 'please use keys' # } +# setting per server overrides global ssh_options # set :rails_env, :<%= stage %>