I'm trying to map local ports in order to redirect traffic to proxy server. I got instruction containing this command:
ssh -A -t -l root 18.104.22.168 -L :8888:22.214.171.124:8888
Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file.
Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent’s UNIX-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent.
Force pseudo-terminal allocation
Specifies that connections to the given TCP port or Unix socket on the local (client) host are to be forwarded to the given host and port, or Unix socket, on the remote side.
Despite reading this I don't understand how it really works and what are implications of typing this in terminal. Can someone explain this in simple terms?