Class: Wemux::Pair::HostTunnel

Inherits:
SshTunnel show all
Defined in:
lib/wemux/pair/host_tunnel.rb

Instance Attribute Summary

Attributes inherited from SshTunnel

#port_offset

Instance Method Summary collapse

Methods inherited from SshTunnel

#client_port, #close_tunnels, #host_port, #initialize, #open, #ssh_options, tunnel_failure!

Constructor Details

This class inherits a constructor from Wemux::Pair::SshTunnel

Instance Method Details

#control_pathObject



6
7
8
# File 'lib/wemux/pair/host_tunnel.rb', line 6

def control_path
  "/tmp/wemux-pair-host-ssh"
end

#ssh_forwardsObject



10
11
12
# File 'lib/wemux/pair/host_tunnel.rb', line 10

def ssh_forwards
  "-R #{host_port}:localhost:22"
end