ssh

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TunnelType string = "ssh"

Functions

func ForkRemoteTunnel

func ForkRemoteTunnel(ctx context.Context, cfg TunnelConfig) (*exec.Cmd, error)

func StartRemoteTunnel

func StartRemoteTunnel(ctx context.Context, cfgJson string, parentPid int) (err error)

Types

type TunnelConfig

type TunnelConfig struct {
	SSHHost    string
	SSHPort    int
	SSHUser    string
	TargetHost string
	TargetPort int
	LocalPort  int
}

Jump to

Keyboard shortcuts

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