sshchannel

package
v0.3.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) error
	ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) error
	RunScript(privateKey string, sshAddress, script string) (string, error)
}

Channel network channel

type Cli

type Cli struct{}

Cli the singleton type

func Ins

func Ins() *Cli

Ins get singleton instance

func (*Cli) ForwardRemoteToLocal

func (c *Cli) ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) (err error)

ForwardRemoteToLocal forward remote request to local

func (*Cli) RunScript

func (c *Cli) RunScript(privateKey string, sshAddress, script string) (result string, err error)

RunScript run the script on remote host.

func (*Cli) StartSocks5Proxy

func (c *Cli) StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) (err error)

StartSocks5Proxy start socks5 proxy

type SocksLogger

type SocksLogger struct{}

func (SocksLogger) Println

func (s SocksLogger) Println(v ...interface{})

Jump to

Keyboard shortcuts

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