mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
show ssh options in template
This commit is contained in:
parent
e49733f3ef
commit
ceacbfc21c
1 changed files with 8 additions and 0 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Reference in a new issue