Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I have recently installed Ubuntu Server 10.04 LTS on my machine that has Windows 7 Ultimate. I would like to run the VM graphicless and access it through ssh from Windows 7. My machine is connected to a router wirelessly and with DHCP. I tried different combinations (NAT/Bridged) but still I am unable to access the guest with PuTTY. It either says connection refused or it simply hangs without anyh other output. While I try to connect to the ssh daemon my VM is started and I am logged in with a normal user.

My Ubuntu Setup was just installed and I haven't configured anything on it except done an apt-get update && apt-get upgrade

Also the open-ssh daemon is started and running.

I don't have ICS on my Windows machine so normally nothing should interfere with the ports. I try to connect to with the normal user name for the Ubuntu setup and it won't connect!

share|improve this question
Put your VM in Bridged mode, check with ifconfig the assigned IP address of your VM and then try again to SSH to that assigned IP. – Marc-André Appel Feb 13 '12 at 10:27
up vote 3 down vote accepted

You need to find what IP the guest is using.

If it's using Bridged networking, then it will have gotten an IP from your router and be on your network like any other device. [edit to add: bear in mind if you have no DHCP on your network, you'll have to handle the IP assignment yourself]

If it's using NAT, VirtualBox runs a dhcpd and assigns the guest an internal address. The host should still be able to see this internal IP (but no other box on your network can).

In a Terminal on your guest, run ifconfig and try ssh to the IP shown for eth0 from your host.

share|improve this answer
I already did that but it did not work! I have selected Bridged adapter, the name of the adapter is the name of my wireless card(because that's where the traffic flows and the adapter type was set to PCnet-PCI II automatically! – Sorin-Mihai Oprea Feb 13 '12 at 10:38
It won't show me an address if I type ifconfig -a It only shows the loopback interface with the address and the eth1 without any address at all. It just says Broadcast Multicast – Sorin-Mihai Oprea Feb 13 '12 at 10:42
One note here: I needed to assign a static IP address to the bridged network! Thank You! – Sorin-Mihai Oprea Feb 13 '12 at 11:26
updated answer with a note that you might have to set IP manually for the benefit of any future visitors :) Glad you got it working! – Caesium Feb 13 '12 at 11:31

Your Answer


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.