ssh

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeepAliveMsg = "keepalive@openssh.com"
)
View Source
var WireSet = wire.NewSet(
	ProvideServer,
)

Functions

func GenerateKeyPair

func GenerateKeyPair(keyPath string) error

GenerateKeyPair make a pair of public and private keys for SSH access.

Types

type Server

type Server struct {
	Host        string
	Port        int
	DefaultUser string

	TrustedUserCAKeys       []string
	TrustedUserCAKeysParsed []gossh.PublicKey
	Ciphers                 []string
	KeyExchanges            []string
	MACs                    []string
	HostKeys                []string
	KeepAliveInterval       time.Duration
	ServerHostKeysDir       string

	Verifier publickey.Service
	RepoCtrl *repo.Controller
	// contains filtered or unexported fields
}

func ProvideServer

func ProvideServer(
	config *types.Config,
	vierifier publickey.Service,
	repoctrl *repo.Controller,
) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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