Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDirectTcpip ¶
func HandleDirectTcpip(ctx context.Context, newChannel ssh.NewChannel)
HandleDirectTcpip handles direct TCP/IP forwarding
func HandleSession ¶
HandleSession handles a session channel
Types ¶
type ForwardManager ¶
type ForwardManager struct {
// contains filtered or unexported fields
}
ForwardManager manages remote port forwarding
func NewForwardManager ¶
func NewForwardManager(conn *ssh.ServerConn) *ForwardManager
NewForwardManager creates a new forward manager
func (*ForwardManager) CancelForward ¶
func (fm *ForwardManager) CancelForward(ctx context.Context, req *ssh.Request)
CancelForward cancels a remote port forward
func (*ForwardManager) HandleTcpipForward ¶
func (fm *ForwardManager) HandleTcpipForward(ctx context.Context, req *ssh.Request)
HandleTcpipForward handles a tcpip-forward request
Click to show internal directories.
Click to hide internal directories.