sshd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	User string
	Path string
	Port int

	Output bytes.Buffer
	// contains filtered or unexported fields
}

func Start

func Start(caPubKey sshcert.RawPublicKey) (*Server, error)

Start starts an sshd server as the current user, and returns a Server. The ssh server will be running in a temporary directory, and will process requests on a random port.

It will only process a single ssh connection before terminating.

func (*Server) Close

func (s *Server) Close() error

func (*Server) Ssh

func (s *Server) Ssh(a *agent.Agent) (string, error)

Jump to

Keyboard shortcuts

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