SSH tunneling or SSH port forwarding – is a method of creating an encrypted SSH connection between a client and a server machine through which services ports can be relayed
ssh -L [LOCAL_IP:]LOCAL_PORT:DESTINATION:DESTINATION_PORT [USER@]SSH_SERVER
Example
ssh -L 8000:127.0.0.1:8384 root@192.168.1.150
Local port forwarding allows you to forward a port on the local (ssh client) machine to a port on the remote (ssh server) machine, which is then forwarded to a port on the destination machine in this forwarding type the SSH client listens on a given port and tunnels any connection to that port to the specified port on the remote SSH server, which then connects to a port on the destination machine the destination machine can be the remote SSH server or any other machine