> For the complete documentation index, see [llms.txt](https://docs.particle42.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.particle42.com/pivoting/port-forwarding.md).

# Port Forwarding

SSH is a powerful port fowarding service that can come in handy under a bunch of scenarios. Let us be clear about the fundamental requirements,

* The compromized system and firewall should allow SSH traffic flow
* Port forwarding has to be done from a Linux system only
* Root privileges is required on the compromized Linux system

SSH port forwarding can come in handy under the following scenarios,

* Local Port Forwarding&#x20;

> Any request landing on our local machine on a specific port can be forwarded to another machine through a compromized machine using SSH as the transport protocol. [Read more](/pivoting/port-forwarding/local-port-forwarding.md)

* Remote Port Forwarding

> Any request landing on a remote machine port can be forwarded to a port on the local machine through a compromized maching using SSH as the transport protocol. [Read More](/pivoting/port-forwarding/remote-port-forwarding.md)

* Dynamic Port Forwarding

> Contrary to the previous methods, any connection to the local port can be forwarded to any machine & port through the proxy service called proxychains. [Read More.](/pivoting/port-forwarding/dynamic-port-forwarding.md)
