1. Software introduction

2) Ubuntu 18.04 3) git bash

2. Virtualbox Settings

After installing Ubuntu, click on the Settings of the image and then click “Network” – “Port Forwarding”.

3. SSH connection

Open git bash, or any other SSH software, type SSH -p XXXX 127.0.0.1@kevin (XXXX indicates your own host port) and press Enter to connect to Ubuntu

PS: Install Ubuntu Server 18 and SSH through Xshell. /ect/network/interfaces can be used without setting