Hello - I've looked and seen some threads with similar issues but none seem to be the same.
This is what I have:
VirtualBox 2.2.0 installed on an Ubuntu 8.10 host.
2 Ubuntu 8.10 Server Guests - these are configured with Bridged Networking to eth0 on the host.
All are getting network info from DHCP
I can use ssh to get from guest A to guest B
I can use ssh from a different physical machine to either guest A or guest B
This can be Windows, Linux, or MAc - all are able to reach the guests without any problem
The problem:
I can not get from the host to either guest A or guest B using ssh
I receive this error, 'abasin' is the host and 192.168.1.145 is guest A:
chris@abasin:~/temp$ ssh administrator@192.168.1.145
ssh_exchange_identification: read: Connection reset by peer
What I have done -
I have used Wireshark on the host - I can see that in fact a RST packet is sent.
I tried static IP - no difference
Any ideas? I am planning on running 2 guests on one of my hosts to provide test beds and also DNS caching. I can't do that if the host can not also talk to the guests.
Perryg wrote:Can you ping in both directions. host to guest and guest to host?
yes, i can ping both directions.
stranger still, i spun up a guest Ubuntu 8.10 Workstation and after installing openssh-server (also installed on the other guests) I can ssh from the host to the workstation. i have verified that ufw is not loaded and there are no iptables rules on any of the guests. very weird.
Well, I figured it out. OpenSSH Server was showing
"status half-configured openssh-server" in dpkg.log ...
so I removed/re-installed it and everything is all good now
Host OS = CentOS 5.3 (X86_64) using VirtualBox 2.2.2 downloaded from virtualbox.org (RHEL5.1 for AMD64)
Guest OS = Ubuntu 9.04 server (32-bit X86)
Networking Type = Bridge Mode
I can ssh to the guest on any other box aside from the host. But the host cannot SSH to the guest. Additionally, the guest can ssh to other boxes, but cannot ssh to the host. Finally, the guest is not able to use the host as its DNS server (/etc/resolv.conf) - while other physical boxes in the network is able to use the host for it's dns server.
The firewalls are disabled and ssh is working just fine as I'm able to get to either host, or guest from other machines in the network.
I'm able to ping the host from the guest, and the guest from the host. Other protocols just doesn't seem to work.
Last edited by gdaswani on 30. Apr 2009, 03:31, edited 2 times in total.
The fact that you can not talk to the host from the guest and the guest to the host points to only one or two things. Something has to be blocking this from happening.
Bridged would mean that you are all using the same IP address range and same subnet. Now if you manually changed this to a different number you might be in a different subnet and communications would not be possible. You also say that the guests could not use the DNS on the host that is another red flag for network communications. or firewall.
Look at the host and see if these numbers all match the same scheme. If you understand iptables you can look at that, or install something like firestarter and tell it to turn off the firewall allowing all communications.