Nov 30, 2017

SSH to Oracle Developer VirtualBox Image

By enabling the NAT adapter and setting up a few port forwarding rules, we can ssh into the VM.

This setup will allow you to spark up firefox in the VM and connect to the internet using the local network ip.

There are two default rules, one which maps anything on port 2222 to port 22 on the guest.  this means we can ssh into the VM on port 2222 on the host. So, connecting with this:

$ ssh -p 2222 [email protected]