sshclient

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoSSH

func DoSSH(sc SSHConfig) error

func GetForwardController

func GetForwardController(sshUser, sshHost, keyPath string) (startCh, cancelCh chan StartCh, exitCh chan struct{}, lports map[string]StartCh, runner func())

Types

type SSHConfig

type SSHConfig struct {
	Host    string
	User    string
	KeyPath string

	SSHPort int
}

type StartCh

type StartCh struct {
	RemotePort string `json:"remotePort"`
	SshPort    string `json:"sshPort"`
	LocalPort  string `json:"localPort"`
}

func (*StartCh) GetId

func (pf *StartCh) GetId() string

Jump to

Keyboard shortcuts

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