server

package
v0.12.4-rc.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SFTPSubsystemName is the name of the SFTP subsystem.
	SFTPSubsystemName = "sftp"
)

List of SSH subsystems names supported by the agent.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Sessions map[string]net.Conn
	// contains filtered or unexported fields
}

func NewServer

func NewServer(api client.Client, authData *models.DeviceAuthResponse, privateKey string, keepAliveInterval int, singleUserPassword string) *Server

NewServer creates a new server SSH agent server.

func (*Server) CloseSession

func (s *Server) CloseSession(id string)

func (*Server) HandleConn

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

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) SetDeviceName

func (s *Server) SetDeviceName(name string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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