I use this handy shell script to secure my vnc through a tunnel:
save with your favorite text editor (I call mine svnc) and chmod u+x to make it executable then, if the file is in your path, you can fire up your secure tunnel by typing:
Mac screen sharing is what allows you to do exactly that. And it’s not difficult to learn. Let’s explore all the ways you can share screen on Mac and the tools you need to do that. How To Share Screen On Mac. For seamless screen sharing Mac requires you to turn on a few changes in settings and equip yourself with a few good apps. A viral screen-sharing app for Mac and Windows, and rightly so. TeamViewer offers a full remote access suite that packs various enterprise features. The app lets you connect and control another computer, its keyboard, and mouse.
if you have JollyFastVNC.app in your Applications folder, it will open and you connect to localhost (127.0.0.1) and port 5902
the terminal window will wait for you to hit return when you are done with your secure vnc, hitting return kills the tunnel so you do not have it sitting around un-noticed.
Someone clever and less lazy than me could surely wrap this up in AppleScript for click and go fun; if that is you, share and enjoy.
Sharing is supported from Windows, Mac, iOS, Android or any OS that supports the Chrome browser. With an app download, you can quickly “share your screen now” to start the share. There are no audio. The remote user will need to authenticate the connection by clicking the Share Screen button that pops up, and within a moment, their screen should appear on your Mac or iOS device.
I first posted a version of this script years ago with an incorrect variable in response to a question from felix-fi (who commented above) on another site about securing afp (just change the ports and the open command). The version here is secure and done up properly. https://yellowcover459.weebly.com/add-app-to-allowed-apps-mac.html.
How To Use Screen Sharing App On Macbook
To felix-fi, I also have to pull up the man page to ssh ever time I start thinking about tunnels sorry for any aggravation from mixed up variables four years ago.