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 ¶
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.
Click to show internal directories.
Click to hide internal directories.