I am running windows xp, and I have created an ubuntu server as a guest on virtualbox.

Network is set to NAT.

My dsl modem is configured for dynamic dns through dyndns.

Ubuntu is running an ssh server.

I would like to be able to ssh into ubuntu from outside the box.

Can anyone help me please?

Thanks!

link|improve this question

60% accept rate
feedback

1 Answer

up vote 1 down vote accepted

That's not going to work. For NAT, you must initiate a connection from the inside, so that the network knows where to sent the packets from the outside.

If you have a router for the DSL connection, set virtualbox networking into bridged mode, configure a port forwarding for port 22 on your router to the (bridged) IP address of your Ubuntu system and you should be fine.

But should you have just a DSL modem, things get more complicated, you would have to setup a port forwarding directly on the Windows side.

link|improve this answer
Plus: the NAT connections from within VirtualBox are very limited in functionality, read the manual. – wolfgangsz Aug 19 '10 at 15:32
Thanks, SvenW! After doing some googling, it turns out that this is possible in NAT mode, using VBoxManage to forward ssh port from host. See this article: virtualbox.org/manual/ch06.html#natforward – Jacko Aug 19 '10 at 16:10
SvenW! you were right after all; couldn't get it to work from outside the modem with NAT. I switched to bridged mode, and my modem allowed me to send traffic from port 22 to my host device. Then it started working. Thanks again. – Jacko Aug 20 '10 at 1:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.