Search This Blog

Loading...

Monday, October 31, 2011

Tunneling with ScreenShare

Sometimes using OS X's ScreenShare is just easier than using the command line to work on a remote computer. If both computers are in the same network, then you can use ScreenShare out of the box (unless your network admin is a freak). When asked for a Host by ScreenShare just type the remote computer's name.

But if both computers are in different networks, things can get complicated ... SSH tunneling to the rescue. In a Terminal in your local computer type:

ssh -L 5900:localhost:1202 [username@]your.remote.computer


Then launch ScreenShare and when asked for a Host type:

localhost:1202


That should do the trick!

(btw, the ScreenShare app is located in /System/Library/CoreServices/, at least in OS X 10.6)