capistrano-db-tasks icon indicating copy to clipboard operation
capistrano-db-tasks copied to clipboard

SSH Port from :ssh_options not being used

Open TJM opened this issue 10 years ago • 4 comments

It is not detecting the SSH port properly. It is trying to use port 22 instead of the one I have set in:

## Global SSH Options
set :ssh_options, {
  forward_agent: true,
  port: 1022,
  keepalive: true,
  keepalive_interval: 60, #seconds - prevents idle timeouts on long tasks
}

I asked about this in #capistrano IRC, but no one appeared to be awake :)

... also, shouldn't it try to find the :primary server? or not?

TJM avatar Jul 14 '15 03:07 TJM

@TJM Is it only capistrano-db-tasks don't use SSH Port?

numbata avatar Jul 23 '15 22:07 numbata

That is the only thing I have found so far. It works fine if you specify the port on a per-server basis, but it doesn't inherit the "global" :ssh_options

TJM avatar Jul 23 '15 23:07 TJM

@TJM what version of capistrano do you use?

numbata avatar Jul 24 '15 12:07 numbata

@numbata: we have been using 3.4.0

TJM avatar Jul 24 '15 14:07 TJM