ssh

package
v0.8.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuther

func NewAuther(ctx context.Context, keyStore *SshKeyStore) *auther

Types

type SshKeyStore

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

func NewSshKeyStore

func NewSshKeyStore(ctx context.Context, dbDir string) (*SshKeyStore, error)

func (*SshKeyStore) AddFromFile

func (s *SshKeyStore) AddFromFile(ctx context.Context, fp string, sessionId string) error

func (*SshKeyStore) Close

func (s *SshKeyStore) Close() error

func (*SshKeyStore) Get

func (s *SshKeyStore) Get(ctx context.Context, pubKey ssh.PublicKey) (string, error)

type SshRunner

type SshRunner struct {
	Ctx         context.Context
	Cfg         engine.Config
	FlagFile    string
	DbDir       string
	ResourceDir string
	Debug       bool
	SrvKeyFile  string
	Host        string
	Port        uint
	// contains filtered or unexported fields
}

func (*SshRunner) GetEngine

func (s *SshRunner) GetEngine(sessionId string) (engine.Engine, func(), error)

func (*SshRunner) Run

func (s *SshRunner) Run(ctx context.Context, keyStore *SshKeyStore)

adapted example from crypto/ssh package, NewServerConn doc

func (*SshRunner) Stop

func (s *SshRunner) Stop() error

Jump to

Keyboard shortcuts

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