ssh

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 24 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 {
	// contains filtered or unexported fields
}

Server is a struct containing information about SSH servers.

func Create

func Create(config *serverconfig.ServerConfig, version string) (*Server, error)

Create creates a new unconnected Server object.

func (*Server) HandleConnection

func (s *Server) HandleConnection(conn net.Conn)

HandleConnection handles a client connection.

func (*Server) PasswordAuth

func (s *Server) PasswordAuth(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error)

PasswordAuth authenticates the client using password authentication.

func (*Server) PublicKeyAuth

func (s *Server) PublicKeyAuth(c ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error)

PublicKeyAuth authenticates the client using a public key.

Jump to

Keyboard shortcuts

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