sshd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSHServer

func SSHServer(addr string, sshConf *ssh.ServerConfig, shellConf ShellConf) (net.Listener, error)

SSHServer starts an ssh server on the given address

Types

type ShellConf

type ShellConf interface {
	Shell() string
	ErrorHandler(error)
}

A ShellConf has common configuration for a ssh shell

func DefaultShellConf

func DefaultShellConf(shell string, errorHandler func(error)) ShellConf

DefaultShellConf creates the standard ShellConf

Jump to

Keyboard shortcuts

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