It's insecure to directly connect VNC. TigerVNC's scraping server has an option to listen on a Unix socket, which you can tunnel through SSH for a secure remote connection (I do this myself).
Here's the command I use to start TigerVNC scraping server -
Code:
X0tigervnc -display <display> -localhost -rfbport -1 -rfbunixpath </path/to/unix/socket/file> -SecurityTypes None -RawKeyboard
Replace the red parts with relevant values for your system. Refer to man X0tigervnc for more info on the above command and options.
Refer to man ssh for how to use -L option of ssh for tunneling.