#!/bin/bash

#create SSH tunnel
ssh -f -L 5900:ip_distante:5900 -t user@ip_distante 'x11vnc -q -geometry 1280x800; /bin/bash'

#open vncviewer
vncviewer localhost:5900

exit 0