ssh_gateway

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 6 Imported by: 0

README

ssh-gateway

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestSshServer

type DestSshServer struct {
	Network string
	Address string
	Config  *ssh.ClientConfig
}

type NoOpLogger

type NoOpLogger struct{}

func (NoOpLogger) Debug

func (l NoOpLogger) Debug(...interface{})

func (NoOpLogger) Debugf

func (l NoOpLogger) Debugf(string, ...interface{})

func (NoOpLogger) Error

func (l NoOpLogger) Error(...interface{})

func (NoOpLogger) Errorf

func (l NoOpLogger) Errorf(string, ...interface{})

func (NoOpLogger) Info

func (l NoOpLogger) Info(...interface{})

func (NoOpLogger) Infof

func (l NoOpLogger) Infof(string, ...interface{})

func (NoOpLogger) Warn

func (l NoOpLogger) Warn(...interface{})

func (NoOpLogger) Warnf

func (l NoOpLogger) Warnf(string, ...interface{})

type SshGateway

type SshGateway struct {
	HostKey       ssh.Signer
	ListenNetwork string
	ListenAddress string

	NoClientAuth bool

	ValidateKeyboardInteractiveCallback func(username string, client ssh.KeyboardInteractiveChallenge) (*DestSshServer, error)
	ValidatePasswordCallback            func(username string, password []byte) (*DestSshServer, error)
	ValidatePublicKeyCallback           func(username string, key ssh.PublicKey) (*DestSshServer, error)
	ValidateNoClientAuthCallback        func(username string) (*DestSshServer, error)
	// contains filtered or unexported fields
}

func (*SshGateway) Start

func (s *SshGateway) Start() error

func (*SshGateway) Stop

func (s *SshGateway) Stop()

type UniversalLogger

type UniversalLogger interface {
	Debug(...interface{})
	Debugf(string, ...interface{})
	Info(...interface{})
	Infof(string, ...interface{})
	Warn(...interface{})
	Warnf(string, ...interface{})
	Error(...interface{})
	Errorf(string, ...interface{})
}

Jump to

Keyboard shortcuts

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