If you’re running two Macs with iCloud support (Lion or Mountain Lion), then you can use iCloud’s network to remote SSH back into your home computer no matter where you are with just a few commands in Terminal.
The process is explained by the One Thing Well blog, but you need to set up a few things before you get started. First, you need to make sure Back to My Mac is enabled in iCloud (System Preferences > iCloud > Back to My Mac). Next, you need to set up your home computer for sharing if it isn’t already. Head to System Preferences > Sharing and turn on at least File Sharing and Remote Login. With everything set, you can now remotely log in to your home computer using iCloud’s network wherever you have internet access.
To start with, you need to do is find your Back to My Mac account number. In Terminal (Applications > Utilities), type: