Do it your self Hobby

How to SSH a Virtualbox through NAT configuration

How to SSH a Virtualbox through NAT configuration. Using NAT as your Virtualbox network connection will create a private network connected to your host network. The only way to have direct access is to port forward any traffic to port 22 of your Virtual Machine. Please follow this step:

  1. Start your virtual machine and login
  2. Get the IP address by typing ifconfig
  3. Poweroff your machine
  4. Go to settings >> Network >> Advance >> Port Forwarding
  5. Add new port forwarding rule
    • Host IP :
    • Host Port: 2222
    • Guest IP: [IP of your virtual machine]
    • Guest Port: 22

You can watch the Video of this tutorial: How to SSH to a Virtualbox through NAT