ssh

package
v0.0.0-...-820b428 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler func(
	command string,
	stdin io.Reader,
	stdout, stderr io.Writer,
	meta ssh.ConnMetadata) (
	exit_status uint32, err error)

type RestrictedServer

type RestrictedServer struct {
	SSHConfig  *ssh.ServerConfig
	ShellError string
	MOTD       string
	Handler    CommandHandler
	SessionEnd func(meta ssh.ConnMetadata)
}

func (*RestrictedServer) ListenAndServe

func (r *RestrictedServer) ListenAndServe(network, address string) (err error)

func (*RestrictedServer) Serve

func (r *RestrictedServer) Serve(listener net.Listener) (err error)

Jump to

Keyboard shortcuts

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