Skip to content

@wacko /gist:5577187
Last active

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

On Ubuntu (guest):

Install OpenSSH Server

Edit /etc/network/interfaces file to append the following lines:

auto eth1
iface eth1 inet static

Run sudo ifup eth1 from the Ubuntu command line. SSH server should be up and running. Switch to your host terminal and enter ssh



awesome. Thanks for sharing o/


worked for me also, thanks!


In case you can't find vboxnet0 try this:

VirtualBox > Preferences > Network > Host-only Networks > Add host-only network (lns)


thanks a lot !


Thank you.


High Five

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.