less tunnelling-vnc-over-ssh.md
Tunnelling: VNC over SSH
# historical archive — written years ago, kept as it was. Some info is dated.
If you want to create a secure tunnel for VNC using ssh, it will be enough to run the following command:
ssh -N -f -L 5901:localhost:5901 -l nomeutente IP.del.server.remoto
Once run, the VNC client will have to be pointed at port 5901 of the local machine.
Should you want to create a shell alias, use something similar:
alias tunvnc='ssh -N -f -L 5901:localhost:5901 -l nomeutente IP.del.server.remoto; open vnc://localhost:5901'