BTMM (back to my mac) works splendidly for a remote desktop solution, but let’s say this doesn’t quite work for you for whatever reason:
- You don’t have adequate bandwidth
- You have a 1440x900 screen at work and a 2560x1440 display at home
- It’s a bit much
- You’d take the commandline any day
Providing you enabled sshd on the remote end (System Preferences -> Sharing -> Remote Login) you can ssh over BTMM too.
OS X’s Terminal.app has knowledge of this built in, simply go to Shell -> New Remote Connection and choose form the list.
But if you’re not using Terminal, it’s easy enough to find:[^1]
djo@kaiju ~/tmp >:3 echo show Setup:/Network/BackToMyMac | scutil