Linux: Setup SSH To Tunnel VNC Traffic Though Internet

Linux: Setup SSH To Tunnel VNC Traffic Though Internet

To set up an SSH tunnel to tunnel VNC traffic over the internet on a Linux system, you will need to follow these steps:

  1. Make sure that the VNC server is running on the machine that you want to connect to. You can do this by using the vncserver command.

  2. On the machine that you want to connect from, open a terminal window and run the following command:

ssh -L 5900:localhost:5900 user@remote_host
Source:‮al.www‬utturi.com

Replace user with the username on the remote machine, and remote_host with the IP address or hostname of the remote machine. This will create an SSH tunnel from your local machine to the remote machine, forwarding traffic on port 5900 (the default VNC port) to the remote machine.

  1. On your local machine, open a VNC client and connect to localhost:5900. The VNC traffic will be tunneled through the SSH connection to the remote machine, allowing you to access the VNC server on the remote machine.
Created Time:2017-10-30 10:17:46  Author:lautturi