Documentation ¶
Overview ¶
Package ssh contains the login for the custom entrypoint binary to run an SSH server. This SSH server is used to provide exec plugins a way to launch an environment to perform a users command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunExecSSHServer ¶
func RunExecSSHServer( ctx context.Context, logger hclog.Logger, sport string, hostkey gossh.Signer, key gossh.PublicKey, ) error
RunExecSSHServer starts up an ssh server on the given port +sport+. The server will use +hostkey+ as the host key and only accepts a connection when the client has authenticated with +key+. The SSH server will run one command and then exit, as it's designed to only be used for one-shot commands via an exec plugin.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.