ssh

package
v0.0.0-...-09eb631 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPort

func GetPort() int

func IsListening

func IsListening(port int) bool

Types

type Connection

type Connection struct {
	JumpHost string
	Command  string
	Tunnels  map[string]Tunnel
	// contains filtered or unexported fields
}

func (*Connection) Close

func (s *Connection) Close() error

func (*Connection) Connect

func (s *Connection) Connect() error

type SSH

type SSH interface {
	Connect() error
	Close() error
}

type Tunnel

type Tunnel struct {
	LocalPort  int
	RemoteHost string
	RemotePort int
}

Jump to

Keyboard shortcuts

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