Documentation
¶
Overview ¶
Package sshd is a toy example of implementing a ssh daemon in go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerConn ¶
type ServerConn struct {
// contains filtered or unexported fields
}
ServerConn is a ssh server connection
func NewFromConn ¶
func NewFromConn(ctx context.Context, conn net.Conn, config *ssh.ServerConfig) (*ServerConn, error)
func (*ServerConn) Loop ¶
func (s *ServerConn) Loop()
func (*ServerConn) Wait ¶
func (s *ServerConn) Wait()
Wait for all the long running sessions such as terminal, exec to finish.
Click to show internal directories.
Click to hide internal directories.