tunnel

package
v0.0.0-...-831067b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivateKeyFile

func PrivateKeyFile(file string) ssh.AuthMethod

Types

type Endpoint

type Endpoint struct {
	Host string
	Port int
	User string
}

func NewEndpoint

func NewEndpoint(s string) *Endpoint

func (*Endpoint) String

func (e *Endpoint) String() string

type SSHTunnel

type SSHTunnel struct {
	Local  *Endpoint
	Server *Endpoint
	Remote *Endpoint
	Config *ssh.ClientConfig
	Log    *log.Logger
	C      chan *ssh.Client
}

func NewSSHTunnel

func NewSSHTunnel(sshServer string, auth ssh.AuthMethod, remote string, local string) *SSHTunnel

NewSSHTunnel creates a new ssh tunnelctl to sshServer and asks the server to start listening on remote interface Will forward and connections to local

func (*SSHTunnel) Start

func (t *SSHTunnel) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL