ssh

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HostName  string
	KeyFile   string
	KnownHost string
	UserName  string
}

Config contains all the parameters needed to open an SSH connection

func NewConfig

func NewConfig(proxyURL string, key string, knownHost string) (*Config, error)

NewConfig initializes a new ssh config structure

type HTTPOverSSHProxy

type HTTPOverSSHProxy struct{}

HTTPOverSSHProxy tunnels HTTP requests through SSH by opening a proxy and forwarding all requests

func (*HTTPOverSSHProxy) Start

func (proxy *HTTPOverSSHProxy) Start(sshConfig Config) (string, error)

Start connects through SSH to the given hostname and spins up the HTTP proxy which forwards all requests

Jump to

Keyboard shortcuts

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