bgreenlee (owner)

Revisions

gist: 444303 Download_button fork
public
Description:
Script to open up a Screen Sharing session in OS X to a home computer over SSH
Public Clone URL: git://gist.github.com/444303.git
Embed All Files: show embed
homevnc.sh #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# port you have open on your home router to forward ssh
SSH_PORT=22022

# set up dynamic dns if you don't have a static ip
HOST=your.home.ip

# OSX Screen Sharing will complain if you try to connect to the standard
# VNC ports (5900+) on localhost, so pick another available port
LOCAL_PORT=1202

ssh -p $SSH_PORT $HOST -L $LOCAL_PORT:localhost:5900 -f -N
open "vnc://localhost:$LOCAL_PORT"

Please log in to comment.