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 127.0.0.1:22 with the normal user name for the Ubuntu setup and it won't connect!
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 foreth0
from your host.