ssh

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyService

func NewProxyService(
	listener net.Listener,
	logger log.Logger,
	retrieveCredentials internal.CredentialsRetriever,
) (internal.Service, error)

NewProxyService constructs a new instance of a SSH ProxyService. The constructor takes a Listener, Logger and CredentialResolver. A SSH ProxyService is able to Connect with Credentials then subsequently stream bytes between client and target service

Types

type ServerConfig

type ServerConfig struct {
	Network      string
	Address      string
	ClientConfig ssh.ClientConfig
}

ServerConfig is the configuration info for the target server

type ServiceConnector

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

ServiceConnector contains the configuration and channels

func (*ServiceConnector) Connect

func (h *ServiceConnector) Connect(
	credentialValuesByID connector.CredentialValuesByID,
) error

Connect opens the connection to the target server and proxies requests

Jump to

Keyboard shortcuts

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