Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyFile ¶
func PrivateKeyFile(file string) ssh.AuthMethod
func SSHAgent ¶ added in v1.3.2
func SSHAgent() ssh.AuthMethod
Types ¶
type Endpoint ¶
func NewEndpoint ¶
type SSHTunnel ¶
type SSHTunnel struct { Local *Endpoint Server *Endpoint Remote *Endpoint Config *ssh.ClientConfig Log logger Conns []net.Conn SvrConns []*ssh.Client // contains filtered or unexported fields }
func NewSSHTunnel ¶
func NewSSHTunnel(tunnel string, auth ssh.AuthMethod, destination string, localport string) *SSHTunnel
NewSSHTunnel creates a new single-use tunnel. Supplying "0" for localport will use a random port.
Click to show internal directories.
Click to hide internal directories.