Create an SSH Tunnel
From LinuxServerTech
How to connect to a remote network via ssh tunnel
ssh -Llocal_ip:local_port:remote_ip:remote_port remote_server
This sets up connections from local_ip on port local_port to be forwarded to remote_ip:remote_port as seen by remote_server. In other words, it is the same as logging in to the remote server and opening a connection from there. Example:
ssh -Llocalhost:5902:joes_computer:5900 client_server
would set up a VNC connection from localhost (your computer) on port 2 for VNC (5902) as if the connection were made from client_server to joes_computer on VNC port 0. Thus, you could use VNC to connect to localhost:2, and it is the exact same as if you logged into client_server and did a VNC connection to joes_computer:0
