The Linux workbench of a virtual machine is not good enough to scroll up to see what is missing and using Xshell is a wise choice.
Install the operating system, general installation 64-bit.
Installing the operating system
The image used is Ubuntu 64-bit 16.04.3 LTS version, saying tomorrow April 2018 will be out of 18.04 LTS version, this version change speed really TM fast.
Set a static IP address
Vim/etc/network/interfaces
Set content must contain the following items
Dns-nameservers and gateway are necessary.
Auto Ens33iface ens33 inet staticaddress 192.168.112.132netmask 255.255.255.0network 192.168.112.0broadcast 192.168.112.255gateway 192.168.112.2# dns-* Options is implemented by the resolvconf package, if Installeddns-nameserver S 192.168.112.2
Set up a virtual machine network
Click Edit Options in the menu bar, click Virtual Network Editor
To change the settings, the main content is as follows
1. Select Nat Mode
2. We previously set the static IP address in and subnet IP a network segment inside
3. Cancel assigning IP addresses to virtual machines using the local DHCP service
Make NAT settings
Set the IP address of the network management, can be in the same network segment
Next Ping www.baidu.com see if can ping pass, can ping pass instructions can connect the outside network.
Installing SSH
Apt-get Install SSH
Set up after installation is complete
Vim/etc/ssh/sshd_config
Locate the following item and modify it as follows (typically only the default configuration for Permitrootlogin is not yes)
# authentication:logingracetime 120PermitRootLogin Yesstrictmodes Yes
You can then access the virtual machine through the Xshell.
Xshell and Virtual Machine docking