Versions in this module Expand all Collapse all v0 v0.1.0 May 17, 2022 Changes in this version + type ClientSSHSession struct + func NewClientSSHSession(socket net.Conn, pf portForwardingManager, acceptLocalConn bool, ...) *ClientSSHSession + func (s *ClientSSHSession) Close() error + func (s *ClientSSHSession) Connect(ctx context.Context) error + func (s *ClientSSHSession) NextChannelID() uint32 + func (s *ClientSSHSession) OpenChannel(ctx context.Context, channelType string, data []byte) (ssh.Channel, error) + type SSHRequest interface + Reply func(ok bool, payload []byte) error + Type func() string + type SSHSession struct + func (s *SSHSession) Read(p []byte) (n int, err error) + func (s *SSHSession) Write(p []byte) (n int, err error) + type Session struct + func NewSession(socket net.Conn) *Session + func (s *Session) Activate(ctx context.Context, a activator) error + func (s *Session) AddChannelHandler(channelType string, handler channelHandlerFunc) + func (s *Session) AddRequestHandler(requestType string, handler requestHandlerFunc) + func (s *Session) Connect(ctx context.Context) (err error)