Documentation Language: Swift

Framework

Forwarding Traffic

Expose a local listening socket and tunnel accepted connections through the SSH transport.

Overview

PortForwardingServer binds a local listener and opens a direct-tcpip child channel for each accepted inbound connection. The forwarding pipeline uses SSHWrapperHandler and a matched pair of GlueHandler instances to bridge raw ByteBuffer traffic to and from SSH channel messages.

This package currently implements local forwarding. Remote forwarding and arbitrary global requests are still lower-level concerns that callers would need to build directly on NIOSSH.

Topics

Forwarding Types

S
PortForwardingConfiguration

Local forwarding settings used to bind a listener and open a direct TCP/IP channel.

C
SSHWrapperHandler

Channel handler that wraps forwarded bytes in SSHChannelData.

See Also

Port Forwarding

S
PortForwardingConfiguration

Local forwarding settings used to bind a listener and open a direct TCP/IP channel.

F
startPortForwarding(_:)

Start a local forwarding server for the supplied configuration.