Versions in this module Expand all Collapse all v1 v1.6.2 Jan 11, 2024 Changes in this version + func PrivateKeyFile(file string) ssh.AuthMethod + func PrivateKeyFileWithPassphrase(file string, passphrase string) ssh.AuthMethod + func SSHAgent() ssh.AuthMethod + type Endpoint struct + Host string + Port int + User string + func NewEndpoint(s string) (*Endpoint, error) + func (endpoint *Endpoint) String() string + type SSHTunnel struct + Config *ssh.ClientConfig + Conns []net.Conn + Local *Endpoint + Log logger + MaxConnectionAttempts int + Remote *Endpoint + Server *Endpoint + SvrConns []*ssh.Client + func NewSSHTunnel(tunnel string, auth ssh.AuthMethod, destination string, localport string) (*SSHTunnel, error) + func (t *SSHTunnel) Listen() (net.Listener, error) + func (t *SSHTunnel) Start() error + func (tunnel *SSHTunnel) Close() + func (tunnel *SSHTunnel) Serve(listener net.Listener) error