Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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