Documentation ¶
Overview ¶
Package portfwd provides an SSH port forwarder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAuthFromIdentityFile ¶
func ReadAuthFromIdentityFile(identityFilename string) (ssh.AuthMethod, error)
ReadAuthFromIdentityFile reads an identity file and returns an AuthMethod that uses the given key pairs.
func SSHAgent ¶
func SSHAgent() ssh.AuthMethod
SSHAgent returns an auth method that runs the given function to obtain a list of key pairs.
Types ¶
type SSHTunnel ¶
type SSHTunnel struct { Endpoints Endpoints Config *ssh.ClientConfig // contains filtered or unexported fields }
SSHTunnel describes a tunnel structure.
func NewTunnel ¶
func NewTunnel(localEndpoint, serverEndpoint, remoteEndpoint string, sshConfig *ssh.ClientConfig) *SSHTunnel
NewTunnel create a new tunnel.
Click to show internal directories.
Click to hide internal directories.