Lots of professional programmers use Macs heavily in their daily work. Do you know we can easily export mac laptop to the internet? Trusted people can access our laptop directly from anywhere. Definitely for temporary use. It could be ssh operations or various web services.
Here is A Simple And Complete Guide in 10 min. Share it, if you like it.
Update Per Audience Feedback:
- Thanks to Daniel Hopper: Try ngrok, secure tunnels to localhost. Your traffic will go through ngrok’s server. It may impose some network penalty. Use ngrok for a quick solution, as long as the latency and security satisfy you. Even if you’re a frequent user of ngrok, I still recommend you to go over this post. It helps us to better understand the trick behind the scene.
Let’s say you’re working remotely. And you need to share some of your work with your colleagues or clients. What you would do? Take screenshots with a lot of explanations? Start a EC2 instance, do the setup again and migrate your current work there? It takes money and time. Much extra time. Worse than that, it compromises our result. What if we can easily export our laptops directly to the audience?
Here we just focus on Mac OS X. The same technique shall apply to all linux boxes. Theoretically speaking, it would work just fine for both Ubuntu and CentOS with some minor changes.
In below example, we try to achieve this:
- Export ssh service of our mac laptop. Tech geeks are addicted to ssh. Right?
- Export a web service. Here we use apache for instance. It is installed by default in Mac OS X.
The main trick is ssh reverse tunnel.
I have a similar situation. My macbook laptop on a corporate network. I can ssh from my macbook but I cannot ssh to my macbook. Not even to localhost. It’s not a firewall issue it is a policy issue. Is there a way I can ssh out from my macbook and use that connection to get to my macbook? Thanks!