- 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:
Code: Select all
$ ifconfig vboxnet0 vboxnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0a:00:27:00:00:00 inet 192.168.56.1 netmask 0xffffff00 broadcast 192.168.56.255
- Booted Ubuntu Server up again, and edited the /etc/network/interfaces file (sudo emacs /etc/network/interfaces) to append the following lines:
Code: Select all
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.
There must be something else I am supposed to do to make this work—but what could it be? Does anybody know? Thank you!