SSH between Mac OS X 10.6 host and Virtual Box guest?
Replicating a post from VirtualBox forum for self reference and archival. Original port is available here. Additionally, on my MBP, I could not see vboxnet0 adapter. The procedure to make it available is as follows:
- Goto VirtualBox Preferences (⌘ + ,)
- Click on 'Network'
- Click on the "+" sign to add the adapter
You are now set to follow the post below.
----
Has anybody been able to communicate by SSH between a Mac OS X 10.6 (Snow Leopard) host and a guest running on VirtualBox? My guest is Ubuntu Server 10.10 (64-bit). I have done the following, but to no avail:
- Installed OpenSSH Server on my Ubuntu Server 10.10 guest.
- Shut the guest down, and used VirtualBox Settings to enable a second virtual network adapter, named (by default) vboxnet0, and which I set as a host-only adapter.
- Ran ifconfig vboxnet0 in my host terminal:
$ ifconfig vboxnet0 vboxnet0: flags=8843 mtu ether 0a:00:27:00:00: inet 192.168.56.1 netmask 0xffffff00 broadcast 192.168.56
- Booted Ubuntu Server up again, and edited the /etc/network/interfaces file (sudo emacs /etc/network/interfaces) to append the following lines:
auto eth1 iface eth1 inet static address 192.168.56.10 netmask 255.255.255.0
- Saved and closed the interfaces file.
- Ran sudo ifup eth1 from the Ubuntu command line.
- Switched to my host terminal and entered ssh 192.168.56.10.
But my Mac OS X ssh client just hung there without a response until it timed out. :-( There must be something else I am supposed to do to make this work—but what could it be? Does anybody know? Thank you!
