We will be configuring Ubuntu 16.04 LTS using VirtualBox to set up two Network interfaces.
2) Host-only Adapter
NAT one will provide internet access to the virtual machine and the
Host-only Adapter will provide us with SSH support from our ssh client.
We don’t want just anyone trying to ssh to the virtual machine from our network this is why we will be using two adapters. Go ahead and set up the adapters in VirtualBox.
Once you have both of those steps configured startup the machine and open up this file.
Inside that file, you are going to want to make this changes.
address can be anything you want to setup for the VM. Now restart the machine.
You can now connect with your favorite SSH client to the virtual server.