server

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrLoadServerKeys

func CreateOrLoadServerKeys(privateKeyPath string) (ssh.Signer, error)

func ParseDirective added in v1.0.3

func ParseDirective(address string) (cidr []*net.IPNet, err error)

func Run

func Run(addr, dataDir, connectBackAddress string, insecure, enabledWebserver bool, timeout int)

func StartSSHServer

func StartSSHServer(sshListener net.Listener, privateKey ssh.Signer, insecure bool, dataDir string, timeout int)

Types

type Options added in v1.0.3

type Options struct {
	AllowList []*net.IPNet
	DenyList  []*net.IPNet
	Comment   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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