nvr_ssh

package
v0.0.0-...-5fd7971 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardPort

func ForwardPort(ctx context.Context, cancelFunc context.CancelCauseFunc, sshClient *ssh.Client, destinationHost string, destinationPort int, localListeningIp string) (string, int, error)

func GetSshClient

func GetSshClient(ctx context.Context, cancelFunc context.CancelCauseFunc, remoteHost string, remotePort int, remoteUser string, allowUnverifiedHosts bool) (*ssh.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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