ssh

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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