Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSH ¶
type SSH struct { Local *Endpoint Server *Endpoint Remote *Endpoint Config *ssh.ClientConfig }
SSH represents a local/remote/tunnel combination
func NewTunnel ¶
func NewTunnel(host, tunnelHost, tunnelUser, tunnelPassword, tunnelPrivateKey string, tunnelRequired bool) (*SSH, error)
NewTunnel will create a string of the form "host:port", and will establish an SSH tunnel if necessary to create a string that can be used to connect to a remote machine
Click to show internal directories.
Click to hide internal directories.