The right way is to use a `.ssh/config` file, which Net:SSH (via SSHKit,
via Capistrano) will pick up, this file can be in your home directory, or
in your project's root. No need to have a Ruby DSL for something for which
we have a perfectly good subsystem.
Lee Hambley
http://lee.hambley.name/
Hi,
thanks a lot for your hint!
I've modified my script using
SSHKit::Backend::Netssh.configure do |ssh|
ssh.connection_timeout = 30
ssh.ssh_options = {
keys: %w(~/.ssh/id_rsa_deploy_xxx),
forward_agent: true,
auth_methods: %w(publickey)
}
end
set :ssh_options, proxy:
I ask again, where did you see `set :ssh_options, proxy:
Net::SSH::Proxy::Command.new('ssh xxx.xxx.xxx.xxx -W %h:%p')` documented?
Lee Hambley
http://lee.hambley.name/
+49 (0) 170 298 5667
On 4 June 2015 at 10:47, matteo bruno bruno.mat...@gmail.com wrote:
Hi,
thanks a lot for your hint!
Hi,
sorry, I forgot to tell you where I've seen that command
http://www.randomerrata.com/articles/2015/deploying-via-a-bastion-host-with-capistrano-3/
what is the right way to connect to a gateway? can you please help me?
thanks a lot,
Matteo
Il giorno giovedì 4 giugno 2015 10:50:24 UTC+2, Lee