For users who are used to working in a graphical desktop environment with Virtual Network Computing (VNC), it is possible to completely encrypt connections using SSH tunneling. In order to tunnel VNC connections over SSH, you will need to run this command in the terminal on your Linux or UNIX machine:
当跨子网远程桌面连接不成功时,可以打一个ssh通道,通过本地localhost:port 即可连接。
$ ssh -L 5901:localhost:5901 -N -f -l username hostname_or_IP