./vnc.sh
or
x11vnc -safer -localhost -nopw -once -display :0
go read: How to Tunnel VNC Connection through SSH Using PuTTY
VNC is a protocol that allows a desktop to be viewed and controlled remotely over the Internet. This is how to create VNC tunnel via SSH.
Requirements:
Ubuntu system (as VNC Server)
Windows system (as VNC Viewer)
PuTTY for Windows
TightVNC Viewer for Windows
In Ubuntu PC, install x11vnc and openssh-server:
$ sudo apt-get install x11vnc openssh-server
Make sure your firewall allows incoming connection on port 22.
In WIndows need: PuTTY, TightVNC
Run PuTTY
Connection > SSH > Tunnels.
5902 for Source port
127.0.0.1:5900 for Destination
./vnc.sh in SSH
Add
Session section of PuTTY
Host Name: abeto.servebeer.com
Port 22
open
TightVNC / RealVNC Viewer.
127.0.0.1::5902 for VNC server and press Connect.
Resources:
https://www.howtoforge.com/setting-up-a-linux-file-server-using-samba
http://colekcolek.com/2011/10/20/tunnel-vnc-connection-ubuntu/