VNC client on Windows Subsystem for Linux

Assumes already setup VNC server on the remote PC.

Setup client Windows laptop:

  1. setup X11 on Windows Subsystem for Linux.
  2. setup VNC Viewer on Windows Subsystem for Linux
    apt install vncviewer
    
  3. create connectVNC.sh
    #!/bin/bash
            
    ssh -f -L 5901:localhost:5901 [email protected] sleep 1;
    vncviewer  localhost::5901
    

Connect to VNC from WSL

  1. Start the Xming X11 server on laptop
  2. SSH tunnel VNC
    ./connectVNC.sh
    
  3. VNC Viewer window opens, showing the X11 desktop on your remote PC.

Leave a Comment