Shutdown your VM and do:
1.VirtualBox > Settings > Network > Add (you will get vboxnet0)
Network: 192.168.88.1
Mask: 255.255.255.0
ifconfig
will show you new interface vboxnet0
Settings > System > check “Enable I/O APIC.” VM’s Settings > Network > Adapter 2 > host-only vboxnet0
sudo apt-get install ssh
ip link
, You should see a list like lo
, enp0s3
and enp0s8
or something to that effect. Use that interface name for the below./etc/network/interfaces
file to append the following lines:# The loopback network interface
auto loiface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp
# The static ip to ssh to
auto enp0s8
iface enp0s8 inet static
address 192.168.88.10
netmask 255.255.255.0
Run sudo ifup enp0s8 or sudo shutdown -r now
from the Ubuntu command line. SSH server should be up and running.
Switch to your host terminal and enter ssh user@192.168.88.10