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
Click to show internal directories.
Click to hide internal directories.