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've just downloaded and installed Ubuntu 10.10 in a VM on virtualbox (4.0.4). Everything on the VM is set to the defaults: NAT adapter. When installing the OS, I selected OpenSSH, and nothing else.

I've tried to connect to the server via ssh from the host (running Mac OS X), but it only timeouts. Can't scp my credentials to it or ping the server either. As far as I can tell, the server is connected fine, has a valid IP, and can ping google.com.

I know I'm missing something basic here... I don't believe I have any kind of firewall up, unless there's one I don't know about that comes with the install. iptables has the default configuration.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Check to see if ssh server is started and is listening on all interfaces, or on the interface you are coming from. Also change the adapter in VirtualBox from NAT to internal network or to bridge.

share|improve this answer
    
Changing the adapter to bridged did it. Looks like it was on a different subnet or something. Had an ip at 10.0.2.X before, now is 10.0.1.X. I'm not much of a network guy, so I'm not sure if there is a way to connect with that other IP. Thank you. –  swilliams Mar 6 '11 at 4:44
    
The problem is that when you use VirtualBox NAT you are connecting from outside of the NAT. And because you are not able to punch holes in the VMware NAT you can not connect from the Host to the VM. To separate the VM from the physical network and to be able connect from the host to the VM you need to do a host only network and use the NAT from the Linux kernel. –  Mircea Vutcovici Mar 6 '11 at 15:07
add comment

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.