Securely connect to VNC(opened to localhost) from remote via SSH port fowarding
- In host, open VNC server using -localhost option.
vncserver -localhost -geometry {vnc screen resolution} :{display number}
- Add your client ssh key to host server.
- Clone vnc-ssh.sh file to your client and edit it to set your connection settings.
Execute vnc-ssh.sh