Module remote

Module remote 

Source
Expand description

Remote port forwarding implementation (-R option)

Remote port forwarding requests the SSH server to create a listener that forwards connections back to a local destination. This is equivalent to the OpenSSH -R [bind_address:]port:host:hostport option.

§Architecture

[Remote Client] → [SSH Server Listener] → [SSH Channel] → [Local Host:Port]
                   ↑ bind_addr:bind_port                  ↑ local_host:local_port

§Example Usage

Forward remote port 8080 to localhost:80:

bssh -R 8080:localhost:80 user@ssh-server

This requests the SSH server to listen on port 8080 and forward all connections to localhost:80 via the SSH connection.

§Implementation Status

Phase 2 - Placeholder Implementation This is a placeholder implementation that provides the basic structure and error handling. The full SSH tcpip-forward protocol implementation will be completed in Phase 2.

Structs§

RemoteForwarder
Remote port forwarder implementation