Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the easiest (no configuration on router, firewall, etc) way to access Ubuntu (virtual machine inside a Ubuntu real machine) from outside my network?

Long version:

I don't really know how my home network works (2 or 3 routers, 6 computers, my father control the network).

But what I need is to be able to see (and use (click,write)) on the Virtual Machine (running Ubuntu) inside my own machine (running Ubuntu). I'd rather not mess with the network (weird equilibrium). I think it's possible, but I don't know what works best and is the easiest to implement.

Ps.: Using VirtualBox. I thought that there was a new program (new to Ubuntu, ported from Windows) that would go over all the port forwarding stuff (Am I wrong? )

Ps2.: Would it be easier to access my first machine (the host for the virtual machine) from outside? I so, I don't mind doing this from Ubuntu (not messing with VirtualBox)

share|improve this question
up vote 4 down vote accepted

Teamviewer is a remote access tool with zero configuration and it supports linux. I've found this tool to be the easiest way to control desktops from outside my network.

share|improve this answer
That's the one thanx – Jhonny Bigodes Jan 20 '11 at 17:26
+1 This program is perfect. Just used it. – Krazy_Kaos Jan 21 '11 at 8:59

It depends on what you are using for the virtual machine.

Can you ssh to that physical machine? Are you using virtual box?

If so look at this:

Your VM software needs to forward a port to your physical machine.
Then you can either ssh to your physical machine and then to your VM or you can, if setup correctly, directly connect to your VM from the outside(as long as the router is forwarding you some ports to use for ssh).

share|improve this answer
Also if you are using Virtual Box 4(newest) see the documentation here: – madmaze Jan 20 '11 at 14:45

I would say hands down the easiest way is to set up port forwarding. I know a number of very talented CS grads that find this prohibitively difficult, and I'm not sure why. Just go to the port forwarding page in your router, and figure it out from there. It's just a few key strokes. Then use SSH with X forwarding.

You did say that you didn't want to change your network, so if there's a really great reason for this other than learning curve, ignore this post. In general, I would look to the built in linux tools before relying on a third party gui tool.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .