sshd

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHServer added in v0.0.20

type SSHServer struct {
	Server         *ssh.Server
	NumConnections func() uint32
}

func MakeServer

func MakeServer(ctx context.Context, opts SSHServerOpts) (*SSHServer, error)

type SSHServerOpts

type SSHServerOpts struct {
	AllowedUsers   []string
	AuthorizedKeys map[string]string // Key to owner
	Env            []string
	Shell          []string
	Dir            string

	InteractiveMOTD func(io.Writer)
}

Jump to

Keyboard shortcuts

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