no comando sudo ssh -gL 80:127.0.0.1:8080 localhost
option -g - Allows remote hosts to connect to local forwarded ports
option -L - [bind_address:]port:host:hostport
Specifies that the given port on the local (client) host is to be
forwarded to the given host and port on the remote side. This
works by allocating a socket to listen to port on the local side,
optionally bound to the specified bind_address. Whenever a
connection is made to this port, the connection is forwarded over
the secure channel, and a connection is made to host port
hostport from the remote machine. Port forwardings can also be
specified in the configuration file.
tráfego da porta 80 redirecionado para a porta 8080 no localhost