$ ssh -L 5911:localhost:5901 <destination user>@<destination ip>
So instead of running a vncviewer:
$ vncviewer <destination ip>:1
you could run:
$ vncviewer localhost:2
to use ssh channel
$ ssh -L 5911:localhost:5901 <destination user>@<destination ip>
So instead of running a vncviewer:
$ vncviewer <destination ip>:1
you could run:
$ vncviewer localhost:2
to use ssh channel