At Adku, every engineer we hire gets a quad-core iMac with a 12GB memory upgrade and a 15-inch quad-core MacBook Pro with maximum memory upgrades (8GB). When we're working remotely on our laptops, sometimes we'll realize that we forgot to check-in a piece of code that is sitting on our iMac at work. If we could ssh into the iMac, we'd be able to check it in and continue where we left off. The problem is our office is behind multiple NATs which make it hard to set up port forwarding and as a fast moving startup, it's not worth the time to set up our own name server. We needed something quick and easy. What we ended up doing was setting up SSH tunnels from our machines at work to an Amazon EC2 instance we call gateway.adku.com. With the tunnel set up, accessing our machines at work is as simple as SSH'ing to the right port on gateway.adku.com. Here is how to set one up for yourself.
On Work Machine:
# create security group and authorized ports
# this assumes that you have an amazon ec2 account and # ami-tools and api-tools setup.
# setting all that up is straightforward, but outside the scope of this post