Method: Arql::App#start_ssh_proxy!

Defined in:
lib/arql/app.rb

#start_ssh_proxy!Object



59
60
61
62
63
64
65
66
67
68
69
# File 'lib/arql/app.rb', line 59

def start_ssh_proxy!
  ssh_config = effective_config[:ssh]
  local_ssh_proxy_port = Arql::SSHProxy.connect(ssh_config.slice(:host, :user, :port, :password).merge(
                                                                                                       forward_host: effective_config[:host],
                                                                                                       forward_port: effective_config[:port],
                                                                                                       local_port: ssh_config[:local_port]))
  {
    host: '127.0.0.1',
    port: local_ssh_proxy_port
  }
end