Skip to main content

Posts

Showing posts with the label VM

How to connect with ssh from your ubuntu host to guest os with virtualbox

1. VirtualBox > Settings > Network > Add (you will get vboxnet0) ifconfig #will show you new interface vboxnet0 2. Shutdown your VM and do: VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0 3. Start VM, on guest run ifconfig and check ip 4. Configuring port forwarding with NAT in your host machine VM's Settings > Network > Adapter 2 > Port forwarding and add a rule and give following values to guest port and host port Host port - 2222 Gurest port - 22 5. Now connect to the VM guest os with ssh using the following command ssh -p 2222 root@localhost