minissh

package
v0.0.0-...-b5dc6b0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2015 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The default place to store and look for host keys
	HostKeysDir = "/etc/ssh"
)

Variables

This section is empty.

Functions

func HandleAuthLogCallback

func HandleAuthLogCallback(conn ssh.ConnMetadata, method string, err error)

Log all authentication attempts

func HandlePublicKeyCallback

func HandlePublicKeyCallback(conn ssh.ConnMetadata, key ssh.PublicKey) (perm *ssh.Permissions, err error)

func HandleServerConn

func HandleServerConn(conn ssh.ConnMetadata, chans <-chan ssh.NewChannel)

func NewServer

func NewServer() (err error)

func ParseTerminalDims

func ParseTerminalDims(b []byte) (uint32, uint32)

Types

type Session

type Session struct {
	// SSH Conn Meta Data
	Conn ssh.ConnMetadata

	// Win Size
	WinH uint16
	WinW uint16
	// contains filtered or unexported fields
}

func (*Session) HandleChannelRequest

func (s *Session) HandleChannelRequest(channel ssh.Channel, in <-chan *ssh.Request)

func (*Session) HandleNewTerminal

func (s *Session) HandleNewTerminal(channel ssh.Channel)

Jump to

Keyboard shortcuts

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