sshd

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHostKey

func GenerateHostKey() (string, error)

Types

type SshServer

type SshServer struct {
	// contains filtered or unexported fields
}

func New

func New(config *config.SshConfig, proxy *proxy.Proxy, service *service.Service) *SshServer

func (*SshServer) Build

func (s *SshServer) Build() *ssh.Server

Build constructs the ssh.Server with all handlers, without starting it.

func (*SshServer) GetReservedConnectionFromSshContext

func (s *SshServer) GetReservedConnectionFromSshContext(ctx ssh.Context) (*db.Connection, error)

func (*SshServer) GetServerAddr

func (s *SshServer) GetServerAddr() string

func (*SshServer) Shutdown

func (s *SshServer) Shutdown(_ context.Context)

func (*SshServer) Start

func (s *SshServer) Start()

Jump to

Keyboard shortcuts

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