Skip to content

Instantly share code, notes, and snippets.

Created Jun 18, 2010
What would you like to do?
Script to open up a Screen Sharing session in OS X to a home computer over SSH
# port you have open on your home router to forward ssh
# set up dynamic dns if you don't have a static ip
# OSX Screen Sharing will complain if you try to connect to the standard
# VNC ports (5900+) on localhost, so pick another available port
ssh -p $SSH_PORT $HOST -L $LOCAL_PORT:localhost:5900 -f -N
open "vnc://localhost:$LOCAL_PORT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment