I am using a MAC and using virtualbox to start a Redhat instance. The instance is started with two adapters (first being NAT, and second being host-only-adapter). The problem is that I am unable to SSH from my Mac to the virtualbox instance using the IP (I am able to ping the IP, though). I checked in the iptables and SSH is allowed (port 22), and sshd daemon is also running. Anything I am missing?
migrated from stackoverflow.com Sep 12 '12 at 14:36
Ah, I got the problem.. The thing was that I was using NAT as the network adapter one and hsot-only-adapter as the second one. I just needed to use the host-only-adapter as network adapter one and NAT as two, and the problem was solved.