SSH ‚Tunneling‘ or SSH ‚Port Forwarding‘ – is a mechanism in SSH for tunneling application ports from the client machine to the server machine

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

Leave a Reply

You must be logged in to post a comment.